Skip to content

Commit

Permalink
Compiling HIP on NVIDIA
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanstocks00 committed Sep 30, 2024
1 parent 2bb4783 commit 6c58b59
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ void modify_weights_ssf_kernel_2d( int32_t npts, int32_t natoms,
int cont = (iCenter < natoms);

// We will continue iterating until all of the threads have cont set to 0

#ifdef __HIP_PLATFORM_NVIDIA__
while (__any_sync(__activemask(), cont)) {
#else
while (__any(cont)) {
#endif
if (cont) {
double2 rj[weight_unroll/2];
double2 rab_val[weight_unroll/2];
Expand Down

0 comments on commit 6c58b59

Please sign in to comment.