Unverified Commit ab945c1d authored by David Sidler's avatar David Sidler Committed by GitHub
Browse files

Add check for ROCM version for syncwarp (#220)

* Add check for ROCM version for syncwarp
parent a7dfea3d
...@@ -3173,7 +3173,12 @@ static bool IsConfiguredGid(union ibv_gid const& gid) ...@@ -3173,7 +3173,12 @@ static bool IsConfiguredGid(union ibv_gid const& gid)
// Wait for all threads to finish // Wait for all threads to finish
if (seType == 1) { if (seType == 1) {
// For warp-level, sync within warp only // For warp-level, sync within warp only
#if defined(__HIP_PLATFORM_AMD__) && (HIP_VERSION_MAJOR < 7)
__builtin_amdgcn_wave_barrier();
#else
__syncwarp(); __syncwarp();
#endif
} else { } else {
// For threadblock-level, sync all threads // For threadblock-level, sync all threads
__syncthreads(); __syncthreads();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment