Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
one
TransferBench
Commits
ab945c1d
Unverified
Commit
ab945c1d
authored
Dec 05, 2025
by
David Sidler
Committed by
GitHub
Dec 05, 2025
Browse files
Add check for ROCM version for syncwarp (#220)
* Add check for ROCM version for syncwarp
parent
a7dfea3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/header/TransferBench.hpp
src/header/TransferBench.hpp
+5
-0
No files found.
src/header/TransferBench.hpp
View file @
ab945c1d
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment