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 332c064 commit 88a8a71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def build_extension(self, ext):
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}')
else:
cuda_arch_list = "3.5;5.0+PTX;6.0;7.0;7.5;8.0;8.6"
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"
Expand Down

0 comments on commit 88a8a71

Please sign in to comment.