Skip to content

Commit

Permalink
Changed waits to be conditional on policy async
Browse files Browse the repository at this point in the history
  • Loading branch information
long58 committed Jan 6, 2025
1 parent c1ec6f4 commit 9a43cb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/RAJA/policy/sycl/scan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ inclusive_inplace(
ii++;
} while ( ii <= iterations);

sycl_res.wait();
if (!Async) { sycl_res.wait(); }
return camp::resources::EventProxy<camp::resources::Sycl>(sycl_res);
}

Expand Down Expand Up @@ -183,7 +183,7 @@ exclusive_inplace(
ii++;
} while ( ii <= iterations);

sycl_res.wait();
if(!Async) { sycl_res.wait(); }
return camp::resources::EventProxy<camp::resources::Sycl>(sycl_res);
return inclusive_inplace(sycl_res, exec, begin, end, binary_op);
}
Expand Down

0 comments on commit 9a43cb5

Please sign in to comment.