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-scatter
Commits
91903d3e
Commit
91903d3e
authored
Jun 16, 2021
by
rusty1s
Browse files
[skip ci] bash shell
parent
897af74b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
24 deletions
+22
-24
.github/workflows/building.yml
.github/workflows/building.yml
+22
-24
No files found.
.github/workflows/building.yml
View file @
91903d3e
...
@@ -39,37 +39,35 @@ jobs:
...
@@ -39,37 +39,35 @@ jobs:
run
:
|
run
:
|
pip install --upgrade pip
pip install --upgrade pip
#
- name: Install CUDA ${{ matrix.cuda-version }}
-
name
:
Install CUDA ${{ matrix.cuda-version }}
#
if: ${{ matrix.cuda-version != 'cpu' }}
if
:
${{ matrix.cuda-version != 'cpu' }}
#
run: |
run
:
|
#
bash .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}.sh
bash .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}.sh
-
name
:
Install PyTorch ${{ matrix.torch-version }}+${{ matrix.cuda-version }}
-
name
:
Install PyTorch ${{ matrix.torch-version }}+${{ matrix.cuda-version }}
run
:
|
run
:
|
pip install numpy typing-extensions
pip install numpy typing-extensions
pip install --no-index --no-cache-dir --verbose torch==${{ matrix.torch-version}} -f https://download.pytorch.org/whl/${{ matrix.cuda-version }}/torch_stable.html
pip install --no-index --no-cache-dir torch==${{ matrix.torch-version}} -f https://download.pytorch.org/whl/${{ matrix.cuda-version }}/torch_stable.html
python -c "import torch; print('PyTorch:', torch.__version__)"
python -c "import torch; print('CUDA: ', torch.version.cuda)"
#
- name: Install main package for CPU
-
name
:
Install main package for CPU
#
if: ${{ matrix.cuda-version == 'cpu' }}
if
:
${{ matrix.cuda-version == 'cpu' }}
#
run: |
run
:
|
#
FORCE_ONLY_CPU=1 pip install -e .
FORCE_ONLY_CPU=1 pip install -e .
#
shell:
shell
:
#
bash
bash
#
- name: Install main package for GPU
-
name
:
Install main package for GPU
#
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 pip install -e .
#
shell:
shell
:
#
bash
bash
#
- name: Build wheel
-
name
:
Build wheel
#
run: |
run
:
|
#
pip install wheel
pip install wheel
#
python setup.py bdist_wheel --dist-dir=dist
python setup.py bdist_wheel --dist-dir=dist
# - name: Upload wheel
# - name: Upload wheel
# uses: shallwefootball/s3-upload-action@master
# uses: shallwefootball/s3-upload-action@master
...
...
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