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
19937735
Commit
19937735
authored
Jun 16, 2021
by
rusty1s
Browse files
[skip ci] update cuda installation
parent
3bb53578
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
21 deletions
+10
-21
.github/workflows/building.yml
.github/workflows/building.yml
+5
-15
.github/workflows/cuda/cu111-Linux-env.sh
.github/workflows/cuda/cu111-Linux-env.sh
+5
-0
.github/workflows/cuda/cu111-Linux.sh
.github/workflows/cuda/cu111-Linux.sh
+0
-6
No files found.
.github/workflows/building.yml
View file @
19937735
...
...
@@ -40,26 +40,16 @@ jobs:
-
name
:
Install CUDA ${{ matrix.cuda-version }}
if
:
${{ matrix.cuda-version != 'cpu' }}
run
:
|
source .github/workflows/${{ matrix.cuda-version }}-${{ runner.os }}.sh
source .github/workflows/
cuda/
${{ matrix.cuda-version }}-${{ runner.os }}.sh
-
name
:
Install PyTorch ${{ matrix.torch-version }}+${{ matrix.cuda-version }}
run
:
|
pip install torch==${{ matrix.torch-version}}+${{ matrix.cuda-version }} -f https://download.pytorch.org/whl/torch_stable.html
-
name
:
Install main package
run
:
|
CUDA_HOME=/usr/local/cuda-11.1
LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
PATH=${CUDA_HOME}/bin:${PATH}
FORCE_CUDA=1 pip install -e .[test]
-
name
:
Run test-suite
run
:
|
python setup.py test
ls -lah
ls torch_scatter -lah
-
name
:
Build wheel
-
name
:
Build main package
run
:
|
pip install wheel
source .github/workflows/cuda/${{ matrix.cuda-version }}-${{ runner.os }}-env.sh
python setup.py bdist_wheel --dist-dir=dist
ls -lah torch_scatter/
ls -lah dist/
.github/workflows/cuda/cu111-Linux-env.sh
0 → 100644
View file @
19937735
#!/bin/bash
CUDA_HOME
=
/usr/local/cuda-11.1
LD_LIBRARY_PATH
=
${
CUDA_HOME
}
/lib64:
${
LD_LIBRARY_PATH
}
PATH
=
${
CUDA_HOME
}
/bin:
${
PATH
}
.github/workflows/cu111-Linux.sh
→
.github/workflows/
cuda/
cu111-Linux.sh
View file @
19937735
...
...
@@ -11,9 +11,3 @@ sudo apt install cuda-nvcc-11-1 cuda-libraries-dev-11-1
sudo
apt clean
rm
-f
https://developer.download.nvidia.com/compute/cuda/11.1.1/local_installers/cuda-repo-ubuntu2004-11-1-local_11.1.1-455.32.00-1_amd64.deb
CUDA_HOME
=
/usr/local/cuda-11.1
LD_LIBRARY_PATH
=
${
CUDA_HOME
}
/lib64:
${
LD_LIBRARY_PATH
}
PATH
=
${
CUDA_HOME
}
/bin:
${
PATH
}
nvcc
--version
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