Skip to content

Commit ecf6eac

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

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

cmake/gauxc-dep-versions.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ set( GAUXC_CUB_REVISION 1.10.0 )
1010
set( GAUXC_CUTLASS_REPOSITORY https://github.com/NVIDIA/cutlass.git )
1111
set( GAUXC_CUTLASS_REVISION v2.10.0 )
1212

13-
set( GAUXC_EXCHCXX_REPOSITORY https://github.com/wavefunction91/ExchCXX.git )
14-
set( GAUXC_EXCHCXX_REVISION 7b017151061f155cac341f2d155aaa47e43a8190)
13+
set( GAUXC_EXCHCXX_REPOSITORY https://github.com/ryanstocks00/ExchCXX.git )
14+
set( GAUXC_EXCHCXX_REVISION 8a0004609afc710bdad4367867026a9daa0a758b)
1515

1616
set( GAUXC_GAU2GRID_REPOSITORY https://github.com/dgasmith/gau2grid.git )
1717
set( GAUXC_GAU2GRID_REVISION v2.0.6 )

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)