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
2f2af2de
Commit
2f2af2de
authored
Jun 25, 2021
by
rusty1s
Browse files
[skip ci] build conda
parent
92799112
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
16 deletions
+15
-16
.github/workflows/building-conda.yml
.github/workflows/building-conda.yml
+5
-8
conda/pytorch-spline-conv/README.md
conda/pytorch-spline-conv/README.md
+1
-1
conda/pytorch-spline-conv/build_conda.sh
conda/pytorch-spline-conv/build_conda.sh
+2
-5
conda/pytorch-spline-conv/conda_build_config.yaml
conda/pytorch-spline-conv/conda_build_config.yaml
+5
-0
conda/pytorch-spline-conv/meta.yaml
conda/pytorch-spline-conv/meta.yaml
+2
-2
No files found.
.github/workflows/building-conda.yml
View file @
2f2af2de
...
@@ -10,10 +10,9 @@ jobs:
...
@@ -10,10 +10,9 @@ jobs:
strategy
:
strategy
:
fail-fast
:
false
fail-fast
:
false
matrix
:
matrix
:
os
:
[
ubuntu-16.04
,
macos-10.15
]
#, windows-latest]
os
:
[
ubuntu-16.04
]
#, macos-10.15] #, windows-latest]
python-version
:
[
3.6
,
3.7
,
3.8
,
3.9
]
torch-version
:
[
1.8.0
,
1.9.0
]
torch-version
:
[
1.8.0
,
1.9.0
]
cuda-version
:
[
'
cpu'
,
'
cu101'
,
'
cu102'
,
'
cu111'
]
cuda-version
:
[
'
cpu'
]
#
, 'cu101', 'cu102', 'cu111']
exclude
:
exclude
:
-
torch-version
:
1.9.0
-
torch-version
:
1.9.0
cuda-version
:
'
cu101'
cuda-version
:
'
cu101'
...
@@ -28,10 +27,8 @@ jobs:
...
@@ -28,10 +27,8 @@ jobs:
steps
:
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
-
name
:
Set up
Miniconda with Python ${{ matrix.python-version }}
-
name
:
Set up
Conda
uses
:
conda-incubator/setup-miniconda@v2
uses
:
conda-incubator/setup-miniconda@v2
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install Conda packages
-
name
:
Install Conda packages
run
:
|
run
:
|
...
@@ -45,7 +42,7 @@ jobs:
...
@@ -45,7 +42,7 @@ jobs:
-
name
:
Build Conda package for CPU
-
name
:
Build Conda package for CPU
if
:
${{ matrix.cuda-version == 'cpu' }}
if
:
${{ matrix.cuda-version == 'cpu' }}
run
:
|
run
:
|
FORCE_ONLY_CPU=1 ./conda/pytorch-spline-conv/build_conda.sh ${{
matrix.python-version }} ${{
matrix.torch-version }} ${{ matrix.cuda-version }}
FORCE_ONLY_CPU=1 ./conda/pytorch-spline-conv/build_conda.sh ${{ matrix.torch-version }} ${{ matrix.cuda-version }}
shell
:
shell
:
bash
bash
...
@@ -53,7 +50,7 @@ jobs:
...
@@ -53,7 +50,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 ./conda/pytorch-spline-conv/build_conda.sh ${{
matrix.python-version }} ${{
matrix.torch-version }} ${{ matrix.cuda-version }}
FORCE_CUDA=1 ./conda/pytorch-spline-conv/build_conda.sh ${{ matrix.torch-version }} ${{ matrix.cuda-version }}
shell
:
shell
:
bash
bash
...
...
conda/pytorch-spline-conv/README.md
View file @
2f2af2de
```
```
./build_conda.sh
3.9
1.9.0 cu111
CONDA=$HOME/.miniconda3
./build_conda.sh 1.9.0 cu111
```
```
conda/pytorch-spline-conv/build_conda.sh
View file @
2f2af2de
#!/bin/bash
#!/bin/bash
export
PYTHON_VERSION
=
$1
export
TORCH_VERSION
=
$1
export
TORCH_VERSION
=
$2
export
CUDA_VERSION
=
$2
export
CUDA_VERSION
=
$3
export
CONDA_PYTHON_CONSTRAINT
=
"python==
$PYTHON_VERSION
"
export
CONDA_PYTORCH_CONSTRAINT
=
"pytorch==
${
TORCH_VERSION
%.*
}
.*"
export
CONDA_PYTORCH_CONSTRAINT
=
"pytorch==
${
TORCH_VERSION
%.*
}
.*"
...
...
conda/pytorch-spline-conv/conda_build_config.yaml
0 → 100644
View file @
2f2af2de
python
:
-
3.6
-
3.7
-
3.8
-
3.9
conda/pytorch-spline-conv/meta.yaml
View file @
2f2af2de
...
@@ -7,12 +7,12 @@ source:
...
@@ -7,12 +7,12 @@ source:
requirements
:
requirements
:
host
:
host
:
-
{{
environ.get('CONDA_PYTHON_CONSTRAINT')
}}
-
python
-
{{
environ.get('CONDA_PYTORCH_CONSTRAINT')
}}
-
{{
environ.get('CONDA_PYTORCH_CONSTRAINT')
}}
-
{{
environ.get('CONDA_CUDATOOLKIT_CONSTRAINT')
}}
-
{{
environ.get('CONDA_CUDATOOLKIT_CONSTRAINT')
}}
run
:
run
:
-
{{
environ.get('CONDA_PYTHON_CONSTRAINT')
}}
-
python
-
{{
environ.get('CONDA_PYTORCH_CONSTRAINT')
}}
-
{{
environ.get('CONDA_PYTORCH_CONSTRAINT')
}}
-
{{
environ.get('CONDA_CUDATOOLKIT_CONSTRAINT')
}}
-
{{
environ.get('CONDA_CUDATOOLKIT_CONSTRAINT')
}}
...
...
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