Skip to content

Commit

Permalink
Fix pragma typo is_device_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfgc committed Oct 24, 2023
1 parent 8b3a8fd commit 4fd91e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Particle/RealSpacePositionsTOMPTarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ class RealSpacePositionsTOMPTarget : public DynamicCoordinatesT<T>

auto* mw_pos_ptr = mw_new_pos.data();
PRAGMA_OFFLOAD("omp target update to(\
is_device_ptr(mw_pos_ptr, mw_rosa_ptr) \
mw_pos_ptr[DIM * mw_new_pos.capacity()])")

coords_leader.is_nw_new_pos_prepared = true;
Expand Down Expand Up @@ -178,6 +177,7 @@ class RealSpacePositionsTOMPTarget : public DynamicCoordinatesT<T>
const size_t mw_pos_stride = mw_new_pos.capacity();

PRAGMA_OFFLOAD("omp target teams distribute parallel for \
is_device_ptr(mw_pos_ptr, mw_rosa_ptr) \
map(always, to : id_array[:num_accepted])")
for (int i = 0; i < num_accepted; i++) {
const int iw = id_array[i];
Expand Down

0 comments on commit 4fd91e8

Please sign in to comment.