Skip to content

Commit 37f758b

Browse files
committed
add TORCH_CUDA_ARCH_LIST to building wheels
1 parent 407f53e commit 37f758b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/building.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
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

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +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} --expt-relaxed-constexpr")
1213
endif()
1314

1415
find_package(Python3 COMPONENTS Development)

conda/pytorch-sparse/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ build:
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

3233
test:

0 commit comments

Comments
 (0)