Skip to content

Commit dff5f3d

Browse files
author
King
committed
Updated device synch on multi-launch scatter and fixed include statemnts
1 parent a0be452 commit dff5f3d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/Spatter/Configuration.hip.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ inline void hipAssert(
4040
}
4141
#endif
4242

43-
#include "AlignedAllocator.hh"
43+
#include "AlignedAllocator.hip.hh"
4444
#include "SpatterTypes.hh"
4545
#include "Timer.hh"
4646

src/Spatter/HipBackend.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,9 @@ float hip_scatter_wrapper(const size_t *d_pattern, double *d_sparse,
220220
hipLaunchKernelGGL(hip_scatter_offset, dim3(blocks_this), dim3(threadsPerBlock), 0, 0,
221221
d_pattern, d_sparse, d_dense, pattern_length,
222222
delta, wrap, counts_this, offset);
223-
hipDeviceSynchronize();
223+
// hipDeviceSynchronize();
224224
}
225+
hipDeviceSynchronize();
225226
}
226227

227228
hipEventRecord(stop);

src/Spatter/Input.hip.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#endif
2121

2222
#include "Configuration.hip.hh"
23-
#include "JSONParser.hh"
23+
#include "JSONParser.hip.hh"
2424
#include "PatternParser.hh"
2525
#include "SpatterTypes.hh"
2626

0 commit comments

Comments
 (0)