Skip to content

Commit f7f5040

Browse files
dhiltgenzcbenz
andauthored
win: fix cuda build (#3532)
Co-authored-by: Cheng <git@zcbenz.com>
1 parent 8f4099d commit f7f5040

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

mlx/backend/cuda/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ target_compile_options(
122122

123123
# Ignore warnings from CUTLASS.
124124
target_compile_options(
125-
mlx PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-Xcudafe="--diag_suppress=2908,2361">)
125+
mlx
126+
PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-Xcudafe="--diag_suppress=186,2908,2361">)
126127

127128
if(NOT MSVC)
128129
# Required for generating optimized CUTLASS code.

mlx/backend/cuda/gemms/gather_gemm.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ void gather_mm(
340340
dim3 num_blocks{uint32_t(ceil_div(m, size<0>(cta_tiler))),
341341
uint32_t(ceil_div(n, size<1>(cta_tiler))),
342342
uint32_t(l)};
343-
dim3 block_dims{num_threads};
343+
dim3 block_dims{uint32_t(num_threads)};
344344
void* args[] = {
345345
&shape_MNKL,
346346
&cta_tiler,

mlx/backend/cuda/quantized/qmm/qmm_naive.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void qmm_naive(
148148
dim3 num_blocks{uint32_t(ceil_div(m, size<0>(cta_tiler))),
149149
uint32_t(ceil_div(n, size<1>(cta_tiler))),
150150
uint32_t(l)};
151-
dim3 block_dims{num_threads};
151+
dim3 block_dims{uint32_t(num_threads)};
152152
void* args[] = {
153153
&shape_MNKL,
154154
&cta_tiler,

mlx/backend/cuda/quantized/qmm/qmm_sm80.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void qmm_sm80(
138138
dim3 num_blocks{uint32_t(ceil_div(m, size<0>(cta_tiler))),
139139
uint32_t(ceil_div(n, size<1>(cta_tiler))),
140140
uint32_t(l)};
141-
dim3 block_dims{num_threads};
141+
dim3 block_dims{uint32_t(num_threads)};
142142
void* args[] = {
143143
&shape_MNKL, &cta_tiler,
144144
&A, &dA,

0 commit comments

Comments
 (0)