File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 7070 if : ${{ matrix.cuda-version != 'cpu' }}
7171 run : |
7272 source .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}-env.sh
73- FORCE_CUDA=1 WITH_METIS=1 pip install -e .
73+ FORCE_CUDA=1 WITH_METIS=1 TORCH_CUDA_ARCH_LIST="5.2 6.0 6.1 7.0 7.5 8.0 8.6+PTX" pip install -e .
7474 shell :
7575 bash
7676
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if(WITH_CUDA)
99 enable_language (CUDA)
1010 add_definitions (-D__CUDA_NO_HALF_OPERATORS__)
1111 add_definitions (-DWITH_CUDA)
12- set (CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -arch=sm_35 - -expt-relaxed-constexpr" )
12+ set (CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} --expt-relaxed-constexpr" )
1313endif ()
1414
1515find_package (Python3 COMPONENTS Development)
Original file line number Diff line number Diff line change 2727 script_env :
2828 - FORCE_CUDA
2929 - WITH_METIS=1
30+ - TORCH_CUDA_ARCH_LIST="5.2 6.0 6.1 7.0 7.5 8.0 8.6+PTX"
3031 preserve_egg_dir : True
3132
3233test :
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ def get_extensions():
6262 define_macros += [('WITH_CUDA' , None )]
6363 nvcc_flags = os .getenv ('NVCC_FLAGS' , '' )
6464 nvcc_flags = [] if nvcc_flags == '' else nvcc_flags .split (' ' )
65- nvcc_flags += ['-arch=sm_35' , '- -expt-relaxed-constexpr' , '-O2' ]
65+ nvcc_flags += ['--expt-relaxed-constexpr' , '-O2' ]
6666 extra_compile_args ['nvcc' ] = nvcc_flags
6767
6868 if sys .platform == 'win32' :
You can’t perform that action at this time.
0 commit comments