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
norm
vllm
Commits
c81dddb4
Unverified
Commit
c81dddb4
authored
Feb 07, 2024
by
Hongxia Yang
Committed by
GitHub
Feb 06, 2024
Browse files
[ROCm] Fix build problem resulted from previous commit related to FP8 kv-cache support (#2790)
parent
fe6d09ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
Dockerfile.rocm
Dockerfile.rocm
+1
-0
rocm_patch/rocm_bf16.patch
rocm_patch/rocm_bf16.patch
+15
-0
No files found.
Dockerfile.rocm
View file @
c81dddb4
...
@@ -76,6 +76,7 @@ RUN cd /app \
...
@@ -76,6 +76,7 @@ RUN cd /app \
&& cd vllm \
&& cd vllm \
&& pip install -U -r requirements-rocm.txt \
&& pip install -U -r requirements-rocm.txt \
&& bash patch_xformers.rocm.sh \
&& bash patch_xformers.rocm.sh \
&& patch /opt/rocm/include/hip/amd_detail/amd_hip_bf16.h /app/vllm/rocm_patch/rocm_bf16.patch \
&& python3 setup.py install \
&& python3 setup.py install \
&& cd ..
&& cd ..
...
...
rocm_patch/rocm_bf16.patch
0 → 100644
View file @
c81dddb4
--- 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
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