Skip to content

Commit c35a39b

Browse files
committed
More forceful double instead of double2
1 parent d4675df commit c35a39b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,12 @@ void modify_weights_ssf_kernel_2d( int32_t npts, int32_t natoms,
138138

139139
#pragma unroll
140140
for (int k = 0; k < weight_unroll/2; k++) {
141-
double2* addr = (double2*)(local_dist_scratch + jCenter) + k;
142-
rj[k].x = addr->x;
143-
rj[k].y = addr->y;
144-
double2* addr2 = (double2*)(local_rab + jCenter) + k;
145-
rab_val[k].x = addr2->x;
146-
rab_val[k].y = addr2->y;
141+
double* addr = (double2*)(local_dist_scratch + jCenter) + k;
142+
rj[k].x = addr[0];
143+
rj[k].y = addr[1];
144+
double* addr2 = (double2*)(local_rab + jCenter) + k;
145+
rab_val[k].x = addr2[0];
146+
rab_val[k].y = addr2[1];
147147
// These caused a memory access violation when lddist is not a
148148
// multiple of 2 as then there can be an unaligned access
149149
// rj[k] = *((double2*)(local_dist_scratch + jCenter) + k);

0 commit comments

Comments
 (0)