Skip to content

Commit

Permalink
Build CUDA kernels for sm_50 instead of sm_52.
Browse files Browse the repository at this point in the history
This improves compatibility with older Maxwell cards, and it probably doesn't matter a whole lot for performance.

See: jax-ml#5723 (comment)
PiperOrigin-RevId: 585967281
  • Loading branch information
hawkinsp authored and jax authors committed Nov 28, 2023
1 parent 95f32b9 commit 6fa506c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ build:cuda --repo_env TF_NEED_CUDA=1
build:cuda --repo_env TF_NCCL_USE_STUB=1
# "sm" means we emit only cubin, which is forward compatible within a GPU generation.
# "compute" means we emit both cubin and PTX, which is larger but also forward compatible to future GPU generations.
build:cuda --action_env TF_CUDA_COMPUTE_CAPABILITIES="sm_52,sm_60,sm_70,sm_80,compute_90"
build:cuda --action_env TF_CUDA_COMPUTE_CAPABILITIES="sm_50,sm_60,sm_70,sm_80,compute_90"
build:cuda --crosstool_top=@local_config_cuda//crosstool:toolchain
build:cuda --@local_config_cuda//:enable_cuda
build:cuda --@xla//xla/python:enable_gpu=true
Expand Down

0 comments on commit 6fa506c

Please sign in to comment.