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
db22d9ff
Commit
db22d9ff
authored
Jun 16, 2021
by
rusty1s
Browse files
[skip ci] bash shell
parent
bdc6b4d3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
40 deletions
+25
-40
.github/workflows/building.yml
.github/workflows/building.yml
+25
-25
.github/workflows/cuda/cu101-Windows.sh
.github/workflows/cuda/cu101-Windows.sh
+0
-5
.github/workflows/cuda/cu102-Windows.sh
.github/workflows/cuda/cu102-Windows.sh
+0
-5
.github/workflows/cuda/cu111-Windows.sh
.github/workflows/cuda/cu111-Windows.sh
+0
-5
No files found.
.github/workflows/building.yml
View file @
db22d9ff
...
@@ -44,35 +44,35 @@ jobs:
...
@@ -44,35 +44,35 @@ jobs:
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 }}
#
if : ${{ runner.os != 'macOS' }}
if
:
${{ runner.os != 'macOS' }}
#
run: |
run
:
|
#
pip install --no-cache-dir torch==${{ matrix.torch-version}}+${{ matrix.cuda-version }} -f https://download.pytorch.org/whl/torch_stable.html
pip install --no-cache-dir torch==${{ matrix.torch-version}}+${{ matrix.cuda-version }} -f https://download.pytorch.org/whl/torch_stable.html
#
- name: Install default PyTorch ${{ matrix.torch-version }}
-
name
:
Install default PyTorch ${{ matrix.torch-version }}
#
if : ${{ runner.os == 'macOS' || (matrix.torch-version == '1.8.0' && matrix.cuda-version == 'cu102') }}
if
:
${{ runner.os == 'macOS' || (matrix.torch-version == '1.8.0' && matrix.cuda-version == 'cu102') }}
#
run: |
run
:
|
#
pip install --no-cache-dir torch==${{ matrix.torch-version}} -f https://download.pytorch.org/whl/torch_stable.html
pip install --no-cache-dir torch==${{ matrix.torch-version}} -f https://download.pytorch.org/whl/torch_stable.html
#
- 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 with CUDA
-
name
:
Install main package with CUDA
#
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
...
...
.github/workflows/cuda/cu101-Windows.sh
View file @
db22d9ff
...
@@ -11,11 +11,6 @@ export CUDA_FILE=cuda_${CUDA_SHORT}.105_418.96_win10.exe
...
@@ -11,11 +11,6 @@ export CUDA_FILE=cuda_${CUDA_SHORT}.105_418.96_win10.exe
# Install CUDA:
# Install CUDA:
curl
-k
-L
"
${
CUDA_URL
}
/
${
CUDA_FILE
}
"
--output
"
${
CUDA_FILE
}
"
curl
-k
-L
"
${
CUDA_URL
}
/
${
CUDA_FILE
}
"
--output
"
${
CUDA_FILE
}
"
ls
-lah
echo
""
echo
"Downloading
${
CUDA_URL
}
/
${
CUDA_FILE
}
..."
PowerShell
-Command
"Invoke-WebRequest -OutFile
\"
${
CUDA_FILE
}
\"
-Uri
\"
${
CUDA_URL
}
/
${
CUDA_FILE
}
\"
"
echo
"Done!"
echo
""
echo
""
echo
"Installing from
${
CUDA_FILE
}
..."
echo
"Installing from
${
CUDA_FILE
}
..."
PowerShell
-Command
"Start-Process -FilePath
\"
${
CUDA_FILE
}
\"
-ArgumentList
\"
-s nvcc_
${
CUDA_SHORT
}
cuobjdump_
${
CUDA_SHORT
}
nvprune_
${
CUDA_SHORT
}
cupti_
${
CUDA_SHORT
}
cublas_dev_
${
CUDA_SHORT
}
cudart_
${
CUDA_SHORT
}
cufft_dev_
${
CUDA_SHORT
}
curand_dev_
${
CUDA_SHORT
}
cusolver_dev_
${
CUDA_SHORT
}
cusparse_dev_
${
CUDA_SHORT
}
npp_dev_
${
CUDA_SHORT
}
nvrtc_dev_
${
CUDA_SHORT
}
nvml_dev_
${
CUDA_SHORT
}
\"
-Wait -NoNewWindow"
PowerShell
-Command
"Start-Process -FilePath
\"
${
CUDA_FILE
}
\"
-ArgumentList
\"
-s nvcc_
${
CUDA_SHORT
}
cuobjdump_
${
CUDA_SHORT
}
nvprune_
${
CUDA_SHORT
}
cupti_
${
CUDA_SHORT
}
cublas_dev_
${
CUDA_SHORT
}
cudart_
${
CUDA_SHORT
}
cufft_dev_
${
CUDA_SHORT
}
curand_dev_
${
CUDA_SHORT
}
cusolver_dev_
${
CUDA_SHORT
}
cusparse_dev_
${
CUDA_SHORT
}
npp_dev_
${
CUDA_SHORT
}
nvrtc_dev_
${
CUDA_SHORT
}
nvml_dev_
${
CUDA_SHORT
}
\"
-Wait -NoNewWindow"
...
...
.github/workflows/cuda/cu102-Windows.sh
View file @
db22d9ff
...
@@ -11,11 +11,6 @@ export CUDA_FILE=cuda_${CUDA_SHORT}.89_441.22_win10.exe
...
@@ -11,11 +11,6 @@ export CUDA_FILE=cuda_${CUDA_SHORT}.89_441.22_win10.exe
# Install CUDA:
# Install CUDA:
curl
-k
-L
"
${
CUDA_URL
}
/
${
CUDA_FILE
}
"
--output
"
${
CUDA_FILE
}
"
curl
-k
-L
"
${
CUDA_URL
}
/
${
CUDA_FILE
}
"
--output
"
${
CUDA_FILE
}
"
ls
-lah
echo
""
echo
"Downloading
${
CUDA_URL
}
/
${
CUDA_FILE
}
..."
PowerShell
-Command
"Invoke-WebRequest -OutFile
\"
${
CUDA_FILE
}
\"
-Uri
\"
${
CUDA_URL
}
/
${
CUDA_FILE
}
\"
"
echo
"Done!"
echo
""
echo
""
echo
"Installing from
${
CUDA_FILE
}
..."
echo
"Installing from
${
CUDA_FILE
}
..."
PowerShell
-Command
"Start-Process -FilePath
\"
${
CUDA_FILE
}
\"
-ArgumentList
\"
-s nvcc_
${
CUDA_SHORT
}
cuobjdump_
${
CUDA_SHORT
}
nvprune_
${
CUDA_SHORT
}
cupti_
${
CUDA_SHORT
}
cublas_dev_
${
CUDA_SHORT
}
cudart_
${
CUDA_SHORT
}
cufft_dev_
${
CUDA_SHORT
}
curand_dev_
${
CUDA_SHORT
}
cusolver_dev_
${
CUDA_SHORT
}
cusparse_dev_
${
CUDA_SHORT
}
npp_dev_
${
CUDA_SHORT
}
nvrtc_dev_
${
CUDA_SHORT
}
nvml_dev_
${
CUDA_SHORT
}
\"
-Wait -NoNewWindow"
PowerShell
-Command
"Start-Process -FilePath
\"
${
CUDA_FILE
}
\"
-ArgumentList
\"
-s nvcc_
${
CUDA_SHORT
}
cuobjdump_
${
CUDA_SHORT
}
nvprune_
${
CUDA_SHORT
}
cupti_
${
CUDA_SHORT
}
cublas_dev_
${
CUDA_SHORT
}
cudart_
${
CUDA_SHORT
}
cufft_dev_
${
CUDA_SHORT
}
curand_dev_
${
CUDA_SHORT
}
cusolver_dev_
${
CUDA_SHORT
}
cusparse_dev_
${
CUDA_SHORT
}
npp_dev_
${
CUDA_SHORT
}
nvrtc_dev_
${
CUDA_SHORT
}
nvml_dev_
${
CUDA_SHORT
}
\"
-Wait -NoNewWindow"
...
...
.github/workflows/cuda/cu111-Windows.sh
View file @
db22d9ff
...
@@ -11,11 +11,6 @@ export CUDA_FILE=cuda_${CUDA_SHORT}.1_456.81_win10.exe
...
@@ -11,11 +11,6 @@ export CUDA_FILE=cuda_${CUDA_SHORT}.1_456.81_win10.exe
# Install CUDA:
# Install CUDA:
curl
-k
-L
"
${
CUDA_URL
}
/
${
CUDA_FILE
}
"
--output
"
${
CUDA_FILE
}
"
curl
-k
-L
"
${
CUDA_URL
}
/
${
CUDA_FILE
}
"
--output
"
${
CUDA_FILE
}
"
ls
-lah
echo
""
echo
"Downloading
${
CUDA_URL
}
/
${
CUDA_FILE
}
..."
PowerShell
-Command
"Invoke-WebRequest -OutFile
\"
${
CUDA_FILE
}
\"
-Uri
\"
${
CUDA_URL
}
/
${
CUDA_FILE
}
\"
"
echo
"Done!"
echo
""
echo
""
echo
"Installing from
${
CUDA_FILE
}
..."
echo
"Installing from
${
CUDA_FILE
}
..."
PowerShell
-Command
"Start-Process -FilePath
\"
${
CUDA_FILE
}
\"
-ArgumentList
\"
-s nvcc_
${
CUDA_SHORT
}
cuobjdump_
${
CUDA_SHORT
}
nvprune_
${
CUDA_SHORT
}
cupti_
${
CUDA_SHORT
}
cublas_dev_
${
CUDA_SHORT
}
cudart_
${
CUDA_SHORT
}
cufft_dev_
${
CUDA_SHORT
}
curand_dev_
${
CUDA_SHORT
}
cusolver_dev_
${
CUDA_SHORT
}
cusparse_dev_
${
CUDA_SHORT
}
npp_dev_
${
CUDA_SHORT
}
nvrtc_dev_
${
CUDA_SHORT
}
nvml_dev_
${
CUDA_SHORT
}
\"
-Wait -NoNewWindow"
PowerShell
-Command
"Start-Process -FilePath
\"
${
CUDA_FILE
}
\"
-ArgumentList
\"
-s nvcc_
${
CUDA_SHORT
}
cuobjdump_
${
CUDA_SHORT
}
nvprune_
${
CUDA_SHORT
}
cupti_
${
CUDA_SHORT
}
cublas_dev_
${
CUDA_SHORT
}
cudart_
${
CUDA_SHORT
}
cufft_dev_
${
CUDA_SHORT
}
curand_dev_
${
CUDA_SHORT
}
cusolver_dev_
${
CUDA_SHORT
}
cusparse_dev_
${
CUDA_SHORT
}
npp_dev_
${
CUDA_SHORT
}
nvrtc_dev_
${
CUDA_SHORT
}
nvml_dev_
${
CUDA_SHORT
}
\"
-Wait -NoNewWindow"
...
...
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