Skip to content

Commit 82c5acd

Browse files
Rick Weyrauchfacebook-github-bot
authored andcommitted
Set TORCH_CUDA_ARCH_LIST as command line arg rather than env var. (#889)
Summary: Pull Request resolved: #889 Use preferred means to pass CUDA architecture list. Reviewed By: jianyuh Differential Revision: D33845626 fbshipit-source-id: 7b7d1881ce5cf576f582aa20b73fe0829067b9cb
1 parent 03a04eb commit 82c5acd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/fbgemmci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ jobs:
232232
shell: bash
233233
run: |
234234
cd fbgemm_gpu
235-
sudo CUDACXX=/usr/local/cuda-11.3/bin/nvcc TORCH_CUDA_ARCH_LIST="6.0" python setup.py install
235+
sudo CUDACXX=/usr/local/cuda-11.3/bin/nvcc python setup.py install -DTORCH_CUDA_ARCH_LIST="6.0"
236236
237237
- name: Test fbgemm_gpu installation
238238
shell: bash

fbgemm_gpu/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export CUB_DIR=${CUB_DIR}
4343
# build for the CUDA architecture supported by current system (or all architectures if no CUDA device present)
4444
python setup.py install
4545
# or build it for specific CUDA architectures (see PyTorch documentation for usage of TORCH_CUDA_ARCH_LIST)
46-
TORCH_CUDA_ARCH_LIST="7.0;8.0" python setup.py install
46+
python setup.py install -DTORCH_CUDA_ARCH_LIST="7.0;8.0"
4747
4848
```
4949

0 commit comments

Comments
 (0)