Skip to content

Commit 9718c41

Browse files
dyzhengdyzheng
andauthored
Fix: Compiling error for ROCM (#5464)
* Fix: compiling error for ROCM * Fix: compiling error of DCU --------- Co-authored-by: dyzheng <[email protected]>
1 parent 9cc7f89 commit 9718c41

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

source/module_hamilt_pw/hamilt_pwdft/kernels/rocm/stress_op.hip.cu

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ __global__ void cal_stress_nl(
291291
++iat;
292292
sum+=nproj;
293293
}//ia
294-
__syncwarp();
295294
warp_reduce(stress_var);
296295
if (threadIdx.x % WARP_SIZE == 0) {
297296
atomicAdd(stress + ipol * 3 + jpol, stress_var);

source/module_hamilt_pw/hamilt_stodft/kernels/rocm/hpsi_norm_op.hip.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void hamilt::hpsi_norm_op<FPTYPE, base_device::DEVICE_GPU>::operator()(const bas
4545
npwk_max, npwk, Ebar, DeltaE,
4646
reinterpret_cast<thrust::complex<FPTYPE>*>(hpsi),
4747
reinterpret_cast<const thrust::complex<FPTYPE>*>(psi_in));
48-
cudaCheckOnDebug();
48+
hipCheckOnDebug();
4949
}
5050

5151
template struct hpsi_norm_op<float, base_device::DEVICE_GPU>;

0 commit comments

Comments
 (0)