forked from vllm-project/vllm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ROCm] Fix build problem resulted from previous commit related to FP8…
… kv-cache support (vllm-project#2790)
- Loading branch information
1 parent
406386d
commit 38deef5
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- amd_hip_bf16.h 2024-02-06 18:28:58.268699142 +0000 | ||
+++ amd_hip_bf16.h.new 2024-02-06 18:28:31.988647133 +0000 | ||
@@ -90,10 +90,10 @@ | ||
#include "math_fwd.h" // ocml device functions | ||
|
||
#if defined(__HIPCC_RTC__) | ||
-#define __HOST_DEVICE__ __device__ | ||
+#define __HOST_DEVICE__ __device__ static | ||
#else | ||
#include <climits> | ||
-#define __HOST_DEVICE__ __host__ __device__ | ||
+#define __HOST_DEVICE__ __host__ __device__ static inline | ||
#endif | ||
|
||
// Since we are using unsigned short to represent data in bfloat16, it can be of different sizes on |