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
c47e71b6
Commit
c47e71b6
authored
Jun 25, 2021
by
rusty1s
Browse files
[skip ci] build conda
parent
662544b3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
6 deletions
+7
-6
.github/workflows/building-conda.yml
.github/workflows/building-conda.yml
+3
-3
conda/README.md
conda/README.md
+0
-0
conda/build_conda.sh
conda/build_conda.sh
+1
-1
conda/meta.yaml
conda/meta.yaml
+3
-0
setup.py
setup.py
+0
-2
No files found.
.github/workflows/building-conda.yml
View file @
c47e71b6
...
@@ -52,7 +52,7 @@ jobs:
...
@@ -52,7 +52,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_CUDA=0 ./conda/
pytorch-spline-conv/
build_conda.sh ${{ matrix.python-version }} ${{ matrix.torch-version }} ${{ matrix.cuda-version }}
FORCE_CUDA=0 ./conda/build_conda.sh ${{ matrix.python-version }} ${{ matrix.torch-version }} ${{ matrix.cuda-version }}
shell
:
shell
:
bash -l {0}
bash -l {0}
...
@@ -60,14 +60,14 @@ jobs:
...
@@ -60,14 +60,14 @@ 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/build_conda.sh ${{ matrix.python-version }} ${{ matrix.torch-version }} ${{ matrix.cuda-version }}
shell
:
shell
:
bash -l {0}
bash -l {0}
-
name
:
Publish Conda package
-
name
:
Publish Conda package
run
:
|
run
:
|
conda install anaconda-client --yes
conda install anaconda-client --yes
anaconda upload --force --label main
$HOME
/conda
-bld
/*/*.tar.bz2
anaconda upload --force --label main
.
/conda/*/*.tar.bz2
env
:
env
:
ANACONDA_API_TOKEN
:
${{ secrets.ANACONDA_TOKEN }}
ANACONDA_API_TOKEN
:
${{ secrets.ANACONDA_TOKEN }}
shell
:
shell
:
...
...
conda/
pytorch-spline-conv/
README.md
→
conda/README.md
View file @
c47e71b6
File moved
conda/
pytorch-spline-conv/
build_conda.sh
→
conda/build_conda.sh
View file @
c47e71b6
...
@@ -30,4 +30,4 @@ echo "PyTorch $TORCH_VERSION+$CUDA_VERSION"
...
@@ -30,4 +30,4 @@ echo "PyTorch $TORCH_VERSION+$CUDA_VERSION"
echo
"-
$CONDA_PYTORCH_CONSTRAINT
"
echo
"-
$CONDA_PYTORCH_CONSTRAINT
"
echo
"-
$CONDA_CUDATOOLKIT_CONSTRAINT
"
echo
"-
$CONDA_CUDATOOLKIT_CONSTRAINT
"
conda build
.
-c
defaults
-c
nvidia
-c
pytorch
--output-folder
"
$HOME
/conda-bld/"
conda build
.
-c
defaults
-c
nvidia
-c
pytorch
--output-folder
.
conda/
pytorch-spline-conv/
meta.yaml
→
conda/meta.yaml
View file @
c47e71b6
...
@@ -6,6 +6,9 @@ source:
...
@@ -6,6 +6,9 @@ source:
path
:
../..
path
:
../..
requirements
:
requirements
:
build
:
-
{{
compiler('c')
}}
# [win]
host
:
host
:
-
python {{ environ.get('PYTHON_VERSION') }}
-
python {{ environ.get('PYTHON_VERSION') }}
-
{{
environ.get('CONDA_PYTORCH_CONSTRAINT')
}}
-
{{
environ.get('CONDA_PYTORCH_CONSTRAINT')
}}
...
...
setup.py
View file @
c47e71b6
...
@@ -19,8 +19,6 @@ if os.getenv('FORCE_ONLY_CPU', '0') == '1':
...
@@ -19,8 +19,6 @@ if os.getenv('FORCE_ONLY_CPU', '0') == '1':
BUILD_DOCS
=
os
.
getenv
(
'BUILD_DOCS'
,
'0'
)
==
'1'
BUILD_DOCS
=
os
.
getenv
(
'BUILD_DOCS'
,
'0'
)
==
'1'
print
(
'FORCE CUDA'
,
suffices
)
def
get_extensions
():
def
get_extensions
():
extensions
=
[]
extensions
=
[]
...
...
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