Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a missing semicolon #986

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Src/Base/AMReX_GpuLaunchFunctsG.H
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,11 @@ void ParallelFor (Box const& box, T ncomp, L&& f) noexcept
template <typename L1, typename L2>
void ParallelFor (Box const& box1, Box const& box2, L1&& f1, L2&& f2) noexcept
{
if (amrex::isEmpty(box1) and amrex::isEmpty(box2)) return;
// xxxxx DPC++ todo: launch separate kernel to reduce kernel size
// xxxxx DPCPP todo: launch separate kernel to reduce kernel size
ParallelFor(box1, std::forward<L1>(f1));
ParallelFor(box2, std::forward<L2>(f2));
#if 0
if (amrex::isEmpty(box1) and amrex::isEmpty(box2)) return;
int ncells1 = box1.numPts();
int ncells2 = box2.numPts();
int ncells = amrex::max(ncells1, ncells2);
Expand Down Expand Up @@ -257,12 +257,12 @@ void ParallelFor (Box const& box1, Box const& box2, L1&& f1, L2&& f2) noexcept
template <typename L1, typename L2, typename L3>
void ParallelFor (Box const& box1, Box const& box2, Box const& box3, L1&& f1, L2&& f2, L3&& f3) noexcept
{
if (amrex::isEmpty(box1) and amrex::isEmpty(box2) and amrex::isEmpty(box3)) return
// xxxxx DPC++ todo: launch separate kernel to reduce kernel size
// xxxxx DPCPP todo: launch separate kernel to reduce kernel size
ParallelFor(box1, std::forward<L1>(f1));
ParallelFor(box2, std::forward<L2>(f2));
ParallelFor(box3, std::forward<L3>(f3));
#if 0
if (amrex::isEmpty(box1) and amrex::isEmpty(box2) and amrex::isEmpty(box3)) return;
int ncells1 = box1.numPts();
int ncells2 = box2.numPts();
int ncells3 = box3.numPts();
Expand Down Expand Up @@ -330,11 +330,11 @@ template <typename T1, typename T2, typename L1, typename L2,
void ParallelFor (Box const& box1, T1 ncomp1, L1&& f1,
Box const& box2, T2 ncomp2, L2&& f2) noexcept
{
if (amrex::isEmpty(box1) and amrex::isEmpty(box2)) return;
// xxxxx DPC++ todo: launch separate kernel to reduce kernel size
// xxxxx DPCPP todo: launch separate kernel to reduce kernel size
ParallelFor(box1, ncomp1, std::forward<L1>(f1));
ParallelFor(box2, ncomp2, std::forward<L2>(f2));
#if 0
if (amrex::isEmpty(box1) and amrex::isEmpty(box2)) return;
int ncells1 = box1.numPts();
int ncells2 = box2.numPts();
int ncells = amrex::max(ncells1, ncells2);
Expand Down Expand Up @@ -396,12 +396,12 @@ void ParallelFor (Box const& box1, T1 ncomp1, L1&& f1,
Box const& box2, T2 ncomp2, L2&& f2,
Box const& box3, T3 ncomp3, L3&& f3) noexcept
{
if (amrex::isEmpty(box1) and amrex::isEmpty(box2) and amrex::isEmpty(box3)) return;
// xxxxx DPC++ todo: launch separate kernel to reduce kernel size
// xxxxx DPCPP todo: launch separate kernel to reduce kernel size
ParallelFor(box1, ncomp1, std::forward<L1>(f1));
ParallelFor(box2, ncomp2, std::forward<L2>(f2));
ParallelFor(box3, ncomp3, std::forward<L3>(f3));
#if 0
if (amrex::isEmpty(box1) and amrex::isEmpty(box2) and amrex::isEmpty(box3)) return;
int ncells1 = box1.numPts();
int ncells2 = box2.numPts();
int ncells3 = box3.numPts();
Expand Down