Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
d53fe7e5
Commit
d53fe7e5
authored
Feb 05, 2026
by
zhuwenwen
Browse files
__syncwarp isn't defined
parent
fc7980db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
csrc/fused_qknorm_rope_kernel.cu
csrc/fused_qknorm_rope_kernel.cu
+9
-9
No files found.
csrc/fused_qknorm_rope_kernel.cu
View file @
d53fe7e5
...
...
@@ -38,15 +38,15 @@
#ifdef USE_ROCM
#define FINAL_MASK 0xffffffffffffffffULL
#if defined(HIP_VERSION) && HIP_VERSION < 70000000
// On ROCm versions before 7.0, __syncwarp isn't defined. The below
// implementation is copy/pasted from the implementation in ROCm 7.0
__device__
inline
void
__syncwarp
()
{
__builtin_amdgcn_fence
(
__ATOMIC_RELEASE
,
"wavefront"
);
__builtin_amdgcn_wave_barrier
();
__builtin_amdgcn_fence
(
__ATOMIC_ACQUIRE
,
"wavefront"
);
}
#endif
//
#if defined(HIP_VERSION) && HIP_VERSION < 70000000
//
// On ROCm versions before 7.0, __syncwarp isn't defined. The below
//
// implementation is copy/pasted from the implementation in ROCm 7.0
//
__device__ inline void __syncwarp() {
//
__builtin_amdgcn_fence(__ATOMIC_RELEASE, "wavefront");
//
__builtin_amdgcn_wave_barrier();
//
__builtin_amdgcn_fence(__ATOMIC_ACQUIRE, "wavefront");
//
}
//
#endif
#else
#define FINAL_MASK 0xffffffff
#endif
...
...
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