diff --git a/hipcub/include/hipcub/backend/rocprim/device/device_spmv.hpp b/hipcub/include/hipcub/backend/rocprim/device/device_spmv.hpp index de404b67..66c683a7 100644 --- a/hipcub/include/hipcub/backend/rocprim/device/device_spmv.hpp +++ b/hipcub/include/hipcub/backend/rocprim/device/device_spmv.hpp @@ -139,7 +139,7 @@ template } else { - size_t block_size = min(num_cols, DeviceSpmv::CsrMVKernel_MaxThreads); + size_t block_size = min(static_cast(num_cols), DeviceSpmv::CsrMVKernel_MaxThreads); size_t grid_size = num_rows; CsrMVKernel<<>>(spmv_params); status = hipGetLastError();