Skip to content

Commit

Permalink
Properly define block size for > sm_100
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Jan 23, 2025
1 parent bd7c69e commit 37c5a64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ auto constexpr static const WARP_SIZE = index_type{32};
auto constexpr static const MAX_THREADS_PER_BLOCK = index_type{256};
#ifdef __CUDACC__
#if __CUDA_ARCH__ == 720 || __CUDA_ARCH__ == 750 || __CUDA_ARCH__ == 860 || \
__CUDA_ARCH__ == 870 || __CUDA_ARCH__ == 890
__CUDA_ARCH__ == 870 || __CUDA_ARCH__ == 890 || __CUDA_ARCH__ == 1200
auto constexpr static const MAX_THREADS_PER_SM = index_type{1024};
#else
auto constexpr static const MAX_THREADS_PER_SM = index_type{2048};
Expand Down

0 comments on commit 37c5a64

Please sign in to comment.