Skip to content

Commit de02ae5

Browse files
committed
Fix documentation for setting TORCH_CUDA_ARCH_LIST
1 parent 8fe92df commit de02ae5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ docker build -t fvdb-devel .
106106
docker run -it --mount type=bind,src="$(pwd)",target=/workspace fvdb-devel bash
107107
cd /workspace;
108108
pip install -r env/build_requirements.txt
109-
TORCH_CUDA_ARCH_LIST="7.5;8.0;9.0;10.0;12.0+PTX" \
110-
./build.sh install -v
109+
./build.sh install --cuda-arch-list="7.5;8.0;9.0;10.0;12.0+PTX" -v
111110
```
112111

113112
In order to extract an artifact from the container such as the Python wheel, query the container ID using `docker ps` and copy the artifact using `docker cp`.
@@ -126,7 +125,7 @@ Using a Python virtual environment enables you to use your system provided compi
126125
python -m venv fvdb
127126
source fvdb/bin/activate
128127
pip install -r env/build_requirements.txt
129-
TORCH_CUDA_ARCH_LIST="7.5;8.0;9.0;10.0;12.0+PTX" ./build.sh install -v
128+
./build.sh install --cuda-arch-list="7.5;8.0;9.0;10.0;12.0+PTX" -v
130129
```
131130

132131
Note: adjust the TORCH_CUDA_ARCH_LIST to suit your needs. If you are building just to run on a single machine, including only the present GPU architecture(s) reduces build time.

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ usage() {
1818
echo " -h, --help Display this help message and exit."
1919
echo " --cuda-arch-list <value> Set TORCH_CUDA_ARCH_LIST (auto-detects if not specified; "
2020
echo " use 'default' to force auto-detect)."
21-
echo " Example: --cuda-arch-list=8.0;8.6+PTX"
21+
echo " Example: --cuda-arch-list=\"8.0;8.6+PTX\""
2222
echo ""
2323
echo "Build Modifiers (for 'install' and 'wheel' build types, typically passed after build_type):"
2424
echo " gtests Enable building tests (sets FVDB_BUILD_TESTS=ON)."

0 commit comments

Comments
 (0)