Unverified Commit 923797fe authored by zhaoyang-star's avatar zhaoyang-star Committed by GitHub
Browse files

Fix compile error when using rocm (#2648)

parent cd9e60c7
...@@ -25,7 +25,9 @@ ...@@ -25,7 +25,9 @@
#include "attention_dtypes.h" #include "attention_dtypes.h"
#include "attention_utils.cuh" #include "attention_utils.cuh"
#ifdef ENABLE_FP8_E5M2
#include "../quantization/fp8_e5m2_kvcache/quant_utils.cuh" #include "../quantization/fp8_e5m2_kvcache/quant_utils.cuh"
#endif
#include <algorithm> #include <algorithm>
......
...@@ -4,13 +4,20 @@ ...@@ -4,13 +4,20 @@
#include "cuda_compat.h" #include "cuda_compat.h"
#include "dispatch_utils.h" #include "dispatch_utils.h"
#ifdef ENABLE_FP8_E5M2
#include "quantization/fp8_e5m2_kvcache/quant_utils.cuh" #include "quantization/fp8_e5m2_kvcache/quant_utils.cuh"
#endif
#include <algorithm> #include <algorithm>
#include <cassert> #include <cassert>
#include <map> #include <map>
#include <vector> #include <vector>
#ifdef USE_ROCM
#include <hip/hip_bf16.h>
typedef __hip_bfloat16 __nv_bfloat16;
#endif
void swap_blocks( void swap_blocks(
torch::Tensor& src, torch::Tensor& src,
torch::Tensor& dst, torch::Tensor& dst,
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
#include "../../attention/dtype_float16.cuh" #include "../../attention/dtype_float16.cuh"
#include "../../attention/dtype_bfloat16.cuh" #include "../../attention/dtype_bfloat16.cuh"
#pragma once
namespace vllm { namespace vllm {
#ifdef ENABLE_FP8_E5M2 #ifdef ENABLE_FP8_E5M2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment