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
02e79e93
Commit
02e79e93
authored
Jun 16, 2021
by
rusty1s
Browse files
[skip ci] update cuda installation
parent
88b17ceb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
.github/workflows/building.yml
.github/workflows/building.yml
+4
-3
.github/workflows/cu111-ubuntu-latest.sh
.github/workflows/cu111-ubuntu-latest.sh
+1
-7
No files found.
.github/workflows/building.yml
View file @
02e79e93
...
@@ -37,9 +37,10 @@ jobs:
...
@@ -37,9 +37,10 @@ jobs:
path
:
${{ steps.pip-cache.outputs.dir }}
path
:
${{ steps.pip-cache.outputs.dir }}
key
:
${{ runner.os }}-pip-py${{ matrix.python-version }}-torch==${{ matrix.torch-version }}+${{ matrix.cuda-version }}
key
:
${{ runner.os }}-pip-py${{ matrix.python-version }}-torch==${{ matrix.torch-version }}+${{ matrix.cuda-version }}
-
name
:
Install Cuda ${{ matrix.cuda-version }}
-
name
:
Install CUDA ${{ matrix.cuda-version }}
if
:
${{ matrix.cuda-version != 'cpu' }}
run
:
|
run
:
|
source .github/workflows/
cuda
.sh
source .github/workflows/
${{ 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
:
|
...
@@ -47,7 +48,7 @@ jobs:
...
@@ -47,7 +48,7 @@ jobs:
-
name
:
Install main package
-
name
:
Install main package
run
:
|
run
:
|
pip install -e .[test]
FORCE_CUDA=1
pip install -e .[test]
-
name
:
Run test-suite
-
name
:
Run test-suite
run
:
|
run
:
|
...
...
.github/workflows/cu
da
.sh
→
.github/workflows/cu
111-ubuntu-latest
.sh
View file @
02e79e93
#!/bin/bash
#!/bin/bash
wget
-nv
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
wget
-nv
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv
cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo mv
cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget
-nv
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
wget
-nv
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
sudo
dpkg
-i
cuda-repo-ubuntu2004-11-1-local_11.1.1-455.32.00-1_amd64.deb
sudo
dpkg
-i
cuda-repo-ubuntu2004-11-1-local_11.1.1-455.32.00-1_amd64.deb
sudo
apt-key add /var/cuda-repo-ubuntu2004-11-1-local/7fa2af80.pub
sudo
apt-key add /var/cuda-repo-ubuntu2004-11-1-local/7fa2af80.pub
sudo
apt-get
-qq
update
sudo
apt-get
-qq
update
sudo
apt
install
cuda-nvcc-11-1 cuda-libraries-dev-11-1
sudo
apt
install
cuda-nvcc-11-1 cuda-libraries-dev-11-1
sudo
apt clean
sudo
apt clean
ls
-lah
/usr/local/
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
CUDA_HOME
=
/usr/local/cuda-11.1
LD_LIBRARY_PATH
=
${
CUDA_HOME
}
/lib64:
${
LD_LIBRARY_PATH
}
LD_LIBRARY_PATH
=
${
CUDA_HOME
}
/lib64:
${
LD_LIBRARY_PATH
}
...
...
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