Skip to content

Commit

Permalink
Fix a missing semicolon (#986)
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang authored Jun 8, 2020
1 parent 70afa5a commit 86a361c
Showing 1 changed file with 8 additions and 8 deletions.
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

0 comments on commit 86a361c

Please sign in to comment.