Skip to content

Commit 6c58b59

Browse files
committed
Compiling HIP on NVIDIA
1 parent 2bb4783 commit 6c58b59

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/xc_integrator/local_work_driver/device/hip/kernels/hip_ssh_2d.hip

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,12 @@ void modify_weights_ssf_kernel_2d( int32_t npts, int32_t natoms,
122122
int cont = (iCenter < natoms);
123123

124124
// We will continue iterating until all of the threads have cont set to 0
125+
126+
#ifdef __HIP_PLATFORM_NVIDIA__
127+
while (__any_sync(__activemask(), cont)) {
128+
#else
125129
while (__any(cont)) {
130+
#endif
126131
if (cont) {
127132
double2 rj[weight_unroll/2];
128133
double2 rab_val[weight_unroll/2];

0 commit comments

Comments
 (0)