Skip to content

Commit 8c24b4d

Browse files
committed
use BNB_WARP_SIZE instead of warpSize in ops.hip
1 parent 6e2e4d2 commit 8c24b4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csrc/ops.hip

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// This source code is licensed under the MIT license found in the
66
// LICENSE file in the root directory of this source tree.
77

8+
#include <common_hip.cuh>
89
#include <ops_hip.cuh>
910
#include <kernels_hip.cuh>
1011
#include <hipcub/hipcub.hpp>
@@ -57,7 +58,7 @@ template <typename T, int STOCHASTIC, int DATA_TYPE> void quantizeBlockwise(floa
5758
hipLaunchKernelGGL(( kQuantizeBlockwise<T, 256, 2, 0, DATA_TYPE>), dim3(num_blocks), dim3(128), 0, 0, code, A, absmax, out, rand, rand_offset, n);
5859
else if(blocksize == 128)
5960
hipLaunchKernelGGL(( kQuantizeBlockwise<T, 128, 2, 0, DATA_TYPE>), dim3(num_blocks), dim3(64), 0, 0, code, A, absmax, out, rand, rand_offset, n);
60-
else if(blocksize == 64 && warpSize == 32)
61+
else if(blocksize == 64 && BNB_WARP_SIZE == 32)
6162
hipLaunchKernelGGL(( kQuantizeBlockwise<T, 64, 2, 0, DATA_TYPE>), dim3(num_blocks), dim3(32), 0, 0, code, A, absmax, out, rand, rand_offset, n);
6263

6364

0 commit comments

Comments
 (0)