Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Apr 7, 2024
1 parent b95e7d0 commit 332c064
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/cuda/Windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,4 @@ cp -r /tmp/NvToolsExt/include/* "/c/Program Files/NVIDIA Corporation/NvToolsExt/
cp -r /tmp/NvToolsExt/lib/x64/* "/c/Program Files/NVIDIA Corporation/NvToolsExt/lib/x64"
export NVTOOLSEXT_PATH="/c/Program Files/NVIDIA Corporation/NvToolsExt/bin/x64"

export CUDA_ARCH_LIST="3.5;5.0+PTX;6.0;7.0;7.5;8.0;8.6"
export TORCH_CUDA_ARCH_LIST="3.5;5.0+PTX;6.0;7.0;7.5;8.0;8.6"
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ def build_extension(self, ext):
f'-DCMAKE_PREFIX_PATH={torch.utils.cmake_prefix_path}',
]

cuda_arch_list = os.getenv('TORCH_CUDA_ARCH_LIST')
if WITH_CUDA and cuda_arch_list is not None:
cmake_args.append(f'-DCMAKE_CUDA_ARCHITECTURES={cuda_arch_list}')

if CMakeBuild.check_env_flag('USE_MKL_BLAS'):
include_dir = f"{sysconfig.get_path('data')}{os.sep}include"
cmake_args.append(f'-DBLAS_INCLUDE_DIR={include_dir}')
Expand Down

0 comments on commit 332c064

Please sign in to comment.