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
a749faec
"docs/vscode:/vscode.git/clone" did not exist on "84cec202c545c829a8cfd19b02b67976e5567ea2"
Commit
a749faec
authored
Jun 25, 2021
by
rusty1s
Browse files
[skip ci] build conda
parent
2531ac26
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
.github/workflows/building-conda.yml
.github/workflows/building-conda.yml
+14
-4
conda/pytorch-spline-conv/build_conda.sh
conda/pytorch-spline-conv/build_conda.sh
+0
-2
conda/pytorch-spline-conv/meta.yaml
conda/pytorch-spline-conv/meta.yaml
+1
-0
No files found.
.github/workflows/building-conda.yml
View file @
a749faec
...
...
@@ -35,14 +35,24 @@ jobs:
-
name
:
Install Conda packages
run
:
|
conda install conda-build
conda install conda-verify
conda install conda-build conda-verify
-
name
:
Install CUDA ${{ matrix.cuda-version }}
if
:
${{ matrix.cuda-version != 'cpu' }}
run
:
|
bash .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}.sh
-
name
:
Build Conda package
-
name
:
Build Conda package for CPU
if
:
${{ matrix.cuda-version == 'cpu' }}
run
:
|
bash ./conda/pytorch-spline-conv/build_conda.sh ${{ matrix.torch-version }} ${{ matrix.cuda-version }}
FORCE_ONLY_CPU=1 source ./conda/pytorch-spline-conv/build_conda.sh ${{ matrix.torch-version }} ${{ matrix.cuda-version }}
shell
:
bash
-
name
:
Build Conda package for GPU
if
:
${{ matrix.cuda-version != 'cpu' }}
run
:
|
source .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}-env.sh
FORCE_CUDA=1 source ./conda/pytorch-spline-conv/build_conda.sh ${{ matrix.torch-version }} ${{ matrix.cuda-version }}
shell
:
bash
conda/pytorch-spline-conv/build_conda.sh
View file @
a749faec
...
...
@@ -6,10 +6,8 @@ export CUDA_VERSION=$2
export
CONDA_PYTORCH_CONSTRAINT
=
"pytorch==
${
TORCH_VERSION
%.*
}
.*"
if
[
"
${
CUDA_VERSION
}
"
=
"cpu"
]
;
then
export
FORCE_ONLY_CPU
=
1
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"cpuonly"
else
export
FORCE_CUDA
=
1
case
$CUDA_VERSION
in
cu111
)
export
CONDA_CUDATOOLKIT_CONSTRAINT
=
"cudatoolkit==11.1.*"
...
...
conda/pytorch-spline-conv/meta.yaml
View file @
a749faec
...
...
@@ -23,6 +23,7 @@ build:
string
:
py{{py}}_torch_{{ environ['TORCH_VERSION'] }}_{{ environ['CUDA_VERSION'] }}
script
:
python setup.py install
script_env
:
-
CUDA_HOME
-
FORCE_CUDA
-
FORCE_ONLY_CPU
...
...
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