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
bf68fd76
Unverified
Commit
bf68fd76
authored
Sep 23, 2025
by
Wentao Ye
Committed by
GitHub
Sep 24, 2025
Browse files
[Compile] Fix AMD Compile Error (#25518)
Signed-off-by:
yewentao256
<
zhyanwentao@126.com
>
parent
de94289a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
csrc/quantization/activation_kernels.cu
csrc/quantization/activation_kernels.cu
+6
-1
csrc/rocm/attention.cu
csrc/rocm/attention.cu
+6
-0
No files found.
csrc/quantization/activation_kernels.cu
View file @
bf68fd76
...
@@ -23,9 +23,14 @@
...
@@ -23,9 +23,14 @@
typedef
__hip_bfloat162
__nv_bfloat162
;
typedef
__hip_bfloat162
__nv_bfloat162
;
typedef
__hip_bfloat16
__nv_bfloat16
;
typedef
__hip_bfloat16
__nv_bfloat16
;
typedef
__hip_bfloat16_raw
__nv_bfloat16_raw
;
typedef
__hip_bfloat16_raw
__nv_bfloat16_raw
;
#if defined(HIP_FP8_TYPE_OCP)
typedef
__hip_fp8_e4m3
__nv_fp8_e4m3
;
typedef
__hip_fp8_e4m3
__nv_fp8_e4m3
;
typedef
__hip_fp8x4_e4m3
__nv_fp8x4_e4m3
;
typedef
__hip_fp8x4_e4m3
__nv_fp8x4_e4m3
;
#else
// ROCm 6.2 fallback: only *_fnuz types exist
typedef
__hip_fp8_e4m3_fnuz
__nv_fp8_e4m3
;
typedef
__hip_fp8x4_e4m3_fnuz
__nv_fp8x4_e4m3
;
#endif
#endif
#endif
#include "core/registration.h"
#include "core/registration.h"
...
...
csrc/rocm/attention.cu
View file @
bf68fd76
...
@@ -25,6 +25,12 @@
...
@@ -25,6 +25,12 @@
#include "../attention/dtype_fp8.cuh"
#include "../attention/dtype_fp8.cuh"
#include "../quantization/fp8/amd/quant_utils.cuh"
#include "../quantization/fp8/amd/quant_utils.cuh"
// ROCm 6.2 compatibility: map OCP fp8 types to FNUZ variants if OCP is absent
#if !defined(HIP_FP8_TYPE_OCP)
using
__hip_fp8_e4m3
=
__hip_fp8_e4m3_fnuz
;
using
__hip_fp8_e5m2
=
__hip_fp8_e5m2_fnuz
;
#endif
#if defined(__HIPCC__) && \
#if defined(__HIPCC__) && \
(defined(__gfx90a__) || defined(__gfx942__) || defined(__gfx950__))
(defined(__gfx90a__) || defined(__gfx942__) || defined(__gfx950__))
#define __HIP__GFX9__
#define __HIP__GFX9__
...
...
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