Skip to content

Commit

Permalink
fix : use the passed in device-id
Browse files Browse the repository at this point in the history
  • Loading branch information
Varun Sundar Rabindranath committed Jun 21, 2024
1 parent 8a20c16 commit 796701b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csrc/quantization/cutlass_w8a8/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ inline int get_cuda_max_shared_memory_per_block_opt_in(int const device) {
int max_shared_mem_per_block_opt_in = 0;
cudaDeviceGetAttribute(&max_shared_mem_per_block_opt_in,
cudaDevAttrMaxSharedMemoryPerBlockOptin,
0);
device);
return max_shared_mem_per_block_opt_in;
}

0 comments on commit 796701b

Please sign in to comment.