Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-spline-conv
Commits
923707e8
"tests/git@developer.sourcefind.cn:OpenDAS/fairscale.git" did not exist on "56add6d5166f870cdbe210d8b5b25921d439655a"
Commit
923707e8
authored
Aug 18, 2021
by
rusty1s
Browse files
add TORCH_CUDA_ARCH_LIST to building wheels
parent
be311106
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
.github/workflows/building.yml
.github/workflows/building.yml
+1
-1
CMakeLists.txt
CMakeLists.txt
+1
-1
conda/pytorch-spline-conv/meta.yaml
conda/pytorch-spline-conv/meta.yaml
+1
-0
setup.py
setup.py
+1
-1
No files found.
.github/workflows/building.yml
View file @
923707e8
...
@@ -60,7 +60,7 @@ jobs:
...
@@ -60,7 +60,7 @@ jobs:
if
:
${{ matrix.cuda-version != 'cpu' }}
if
:
${{ matrix.cuda-version != 'cpu' }}
run
:
|
run
:
|
source .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}-env.sh
source .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}-env.sh
FORCE_CUDA=1 pip install -e .
FORCE_CUDA=1
TORCH_CUDA_ARCH_LIST="5.2 6.0 6.1 7.0 7.5 8.0 8.6+PTX"
pip install -e .
shell
:
shell
:
bash
bash
...
...
CMakeLists.txt
View file @
923707e8
...
@@ -9,7 +9,7 @@ if(WITH_CUDA)
...
@@ -9,7 +9,7 @@ if(WITH_CUDA)
enable_language
(
CUDA
)
enable_language
(
CUDA
)
add_definitions
(
-D__CUDA_NO_HALF_OPERATORS__
)
add_definitions
(
-D__CUDA_NO_HALF_OPERATORS__
)
add_definitions
(
-DWITH_CUDA
)
add_definitions
(
-DWITH_CUDA
)
set
(
CMAKE_CUDA_FLAGS
"
${
CMAKE_CUDA_FLAGS
}
-arch=sm_35
--expt-relaxed-constexpr"
)
set
(
CMAKE_CUDA_FLAGS
"
${
CMAKE_CUDA_FLAGS
}
--expt-relaxed-constexpr"
)
endif
()
endif
()
find_package
(
Python3 COMPONENTS Development
)
find_package
(
Python3 COMPONENTS Development
)
...
...
conda/pytorch-spline-conv/meta.yaml
View file @
923707e8
...
@@ -25,6 +25,7 @@ build:
...
@@ -25,6 +25,7 @@ build:
script
:
pip install .
script
:
pip install .
script_env
:
script_env
:
-
FORCE_CUDA
-
FORCE_CUDA
-
TORCH_CUDA_ARCH_LIST="5.2 6.0 6.1 7.0 7.5 8.0 8.6+PTX"
test
:
test
:
imports
:
imports
:
...
...
setup.py
View file @
923707e8
...
@@ -35,7 +35,7 @@ def get_extensions():
...
@@ -35,7 +35,7 @@ def get_extensions():
define_macros
+=
[(
'WITH_CUDA'
,
None
)]
define_macros
+=
[(
'WITH_CUDA'
,
None
)]
nvcc_flags
=
os
.
getenv
(
'NVCC_FLAGS'
,
''
)
nvcc_flags
=
os
.
getenv
(
'NVCC_FLAGS'
,
''
)
nvcc_flags
=
[]
if
nvcc_flags
==
''
else
nvcc_flags
.
split
(
' '
)
nvcc_flags
=
[]
if
nvcc_flags
==
''
else
nvcc_flags
.
split
(
' '
)
nvcc_flags
+=
[
'-arch=sm_35'
,
'--expt-relaxed-constexpr'
,
'-O2'
]
nvcc_flags
+=
[
'--expt-relaxed-constexpr'
,
'-O2'
]
extra_compile_args
[
'nvcc'
]
=
nvcc_flags
extra_compile_args
[
'nvcc'
]
=
nvcc_flags
name
=
main
.
split
(
os
.
sep
)[
-
1
][:
-
4
]
name
=
main
.
split
(
os
.
sep
)[
-
1
][:
-
4
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment