Skip to content

Commit 1f3cfd0

Browse files
hangy-amdLLLLKKKK
authored andcommitted
remove DeviceTypes.h
1 parent 5ebfeda commit 1f3cfd0

File tree

6 files changed

+1
-20
lines changed

6 files changed

+1
-20
lines changed

rtp_llm/cpp/cache/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ cc_library(
3636
"BlockLRUCache.cc",
3737
],
3838
deps = [
39-
"//rtp_llm/cpp/core:device_types_hdr",
4039
"//rtp_llm/cpp/model_rpc:model_rpc_pool",
4140
"//rtp_llm/cpp/model_rpc:rpc_error_code",
4241
"//rtp_llm/cpp/utils:lru_cache",

rtp_llm/cpp/core/BUILD

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ cc_library(
1313
visibility = ["//visibility:public"],
1414
)
1515

16-
cc_library(
17-
name = "device_types_hdr",
18-
hdrs = [
19-
"DeviceTypes.h",
20-
],
21-
visibility = ["//visibility:public"],
22-
)
23-
2416
cc_library(
2517
name = "types",
2618
srcs = [

rtp_llm/cpp/core/DeviceTypes.h

Lines changed: 0 additions & 9 deletions
This file was deleted.

rtp_llm/cpp/kernels/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@ cc_library(
343343
"unfused_attention_kernels.h",
344344
],
345345
deps = any_cuda_deps + [
346-
"//rtp_llm/cpp/core:device_types_hdr",
347346
"//rtp_llm/cpp/utils:core_utils",
348347
"//rtp_llm/cpp/model_utils:model_utils",
349348
"//rtp_llm/cpp/cuda:cuda_utils_cu",

rtp_llm/cpp/kernels/unfused_attention_kernels.cu

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "rtp_llm/cpp/kernels/rotary_position_embedding.h"
2222
#include "rtp_llm/cpp/kernels/unfused_attention_kernels.h"
2323
#include "rtp_llm/cpp/cuda/cuda_type_utils.cuh"
24-
#include "rtp_llm/cpp/core/DeviceTypes.h"
2524
#if USING_CUDA
2625
#include "rtp_llm/cpp/cuda/cuda_host_utils.h"
2726
#endif

rtp_llm/cpp/rocm/cuda_shims.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#define __nv_bfloat16 amd_bfloat16
1111
#define __nv_bfloat162 amd_bfloat162
12+
#define __nv_fp8_e4m3 __hip_fp8_e4m3_fnuz
1213

1314
static inline __device__ __host__ __nv_bfloat162 __float2bfloat162_rn(float x) {
1415
return {__nv_bfloat16(x), __nv_bfloat16(x)};

0 commit comments

Comments
 (0)