@@ -41,8 +41,6 @@ void runAllPairwiseL2Distance(
41
41
bool queriesRowMajor,
42
42
Tensor<float , 2 , true >& outDistances);
43
43
44
- // no bf16 support for AMD
45
- #ifndef USE_AMD_ROCM
46
44
void runAllPairwiseL2Distance (
47
45
GpuResources* res,
48
46
cudaStream_t stream,
@@ -52,7 +50,6 @@ void runAllPairwiseL2Distance(
52
50
Tensor<__nv_bfloat16, 2 , true >& queries,
53
51
bool queriesRowMajor,
54
52
Tensor<float , 2 , true >& outDistances);
55
- #endif // USE_AMD_ROCM
56
53
57
54
void runAllPairwiseIPDistance (
58
55
GpuResources* res,
@@ -72,8 +69,6 @@ void runAllPairwiseIPDistance(
72
69
bool queriesRowMajor,
73
70
Tensor<float , 2 , true >& outDistances);
74
71
75
- // no bf16 support for AMD
76
- #ifndef USE_AMD_ROCM
77
72
void runAllPairwiseIPDistance (
78
73
GpuResources* res,
79
74
cudaStream_t stream,
@@ -82,7 +77,6 @@ void runAllPairwiseIPDistance(
82
77
Tensor<__nv_bfloat16, 2 , true >& queries,
83
78
bool queriesRowMajor,
84
79
Tensor<float , 2 , true >& outDistances);
85
- #endif // USE_AMD_ROCM
86
80
87
81
// / Calculates brute-force L2 distance between `vectors` and
88
82
// / `queries`, returning the k closest results seen
@@ -116,8 +110,6 @@ void runL2Distance(
116
110
Tensor<idx_t , 2 , true >& outIndices,
117
111
bool ignoreOutDistances = false );
118
112
119
- // no bf16 support for AMD
120
- #ifndef USE_AMD_ROCM
121
113
void runL2Distance (
122
114
GpuResources* resources,
123
115
cudaStream_t stream,
@@ -130,7 +122,6 @@ void runL2Distance(
130
122
Tensor<float , 2 , true >& outDistances,
131
123
Tensor<idx_t , 2 , true >& outIndices,
132
124
bool ignoreOutDistances = false );
133
- #endif // USE_AMD_ROCM
134
125
135
126
// / Calculates brute-force inner product distance between `vectors`
136
127
// / and `queries`, returning the k closest results seen
@@ -156,8 +147,6 @@ void runIPDistance(
156
147
Tensor<float , 2 , true >& outDistances,
157
148
Tensor<idx_t , 2 , true >& outIndices);
158
149
159
- // no bf16 support for AMD
160
- #ifndef USE_AMD_ROCM
161
150
void runIPDistance (
162
151
GpuResources* resources,
163
152
cudaStream_t stream,
@@ -168,7 +157,6 @@ void runIPDistance(
168
157
int k,
169
158
Tensor<float , 2 , true >& outDistances,
170
159
Tensor<idx_t , 2 , true >& outIndices);
171
- #endif // USE_AMD_ROCM
172
160
173
161
//
174
162
// General distance implementation, assumes that all arguments are on the
0 commit comments