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
fe4c7188
Commit
fe4c7188
authored
Feb 12, 2020
by
rusty1s
Browse files
conda python
parent
ed494ee2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
71 deletions
+77
-71
.travis.yml
.travis.yml
+65
-70
script/conda.sh
script/conda.sh
+11
-0
script/install.sh
script/install.sh
+1
-1
No files found.
.travis.yml
View file @
fe4c7188
sudo
:
enabled
env
:
global
:
-
TORCH_VERSION=1.4.0
...
...
@@ -12,33 +10,27 @@ jobs:
include
:
-
name
:
linux/cpu
os
:
linux
language
:
python
python
:
3.7.6
env
:
-
IDX
=
cpu
-
TO
RCH=${TORCH_VERSION}+${IDX}
-
IDX
=
cpu
-
TO
OLKIT=cpuonly
-
name
:
linux/cu92
os
:
linux
language
:
python
python
:
3.7.6
env
:
-
IDX=cu92
-
CUDA_SHORT=9.2
-
CUDA=9.2.148-1
-
UBUNTU_VERSION=ubuntu1604
-
CUBLAS=cuda-cublas-dev-9-2
-
TO
RCH=${TORCH_VERSION}+${IDX}
-
TO
OLKIT="cudatoolkit=${CUDA_SHORT}"
-
name
:
linux/cu100
os
:
linux
language
:
python
python
:
3.7.6
env
:
-
IDX=cu100
-
CUDA_SHORT=10.0
-
CUDA=10.0.130-1
-
UBUNTU_VERSION=ubuntu1804
-
CUBLAS=cuda-cublas-dev-10-0
-
TO
RCH=${TORCH_VERSION}+${IDX}
-
TO
OLKIT="cudatoolkit=${CUDA_SHORT}"
-
name
:
linux/cu101
os
:
linux
language
:
python
...
...
@@ -49,36 +41,36 @@ jobs:
-
CUDA=10.1.105-1
-
UBUNTU_VERSION=ubuntu1804
-
CUBLAS=libcublas-dev
-
TO
RCH=${TORCH_VERSION}
-
name
:
macosx/cpu
os
:
osx
osx_image
:
xcode11.3
language
:
shell
env
:
-
IDX=cpu
-
TORCH=${TORCH_VERSION}
-
name
:
windows/cpu
os
:
windows
language
:
shell
env
:
-
IDX=cpu
-
TORCH=${TORCH_VERSION}+${IDX}
-
PATH=/c/Python37:/c/Python37/Scripts:$PATH
before_install
:
-
choco install python --version 3.7.6
-
python -m pip install --upgrade --user pip
-
name
:
windows/cu92
os
:
windows
language
:
shell
env
:
-
IDX=cu92
-
CUDA_SHORT=9.2
-
CUDA=9.2.148
-
TORCH=${TORCH_VERSION}+${IDX}
-
PATH=/c/Python37:/c/Python37/Scripts:$PATH
before_install
:
-
choco install python --version 3.7.6
-
python -m pip install --upgrade --user pip
-
TO
OLKIT="cudatoolkit=${CUDA_SHORT}"
#
- name: macosx/cpu
#
os: osx
#
osx_image: xcode11.3
#
language: shell
#
env:
#
- IDX=cpu
#
- TORCH=${TORCH_VERSION}
#
- name: windows/cpu
#
os: windows
#
language: shell
#
env:
#
- IDX=cpu
#
- TORCH=${TORCH_VERSION}+${IDX}
#
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
#
before_install:
#
- choco install python --version 3.7.6
#
- python -m pip install --upgrade --user pip
#
- name: windows/cu92
#
os: windows
#
language: shell
#
env:
#
- IDX=cu92
#
- CUDA_SHORT=9.2
#
- CUDA=9.2.148
#
- TORCH=${TORCH_VERSION}+${IDX}
#
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
#
before_install:
#
- choco install python --version 3.7.6
#
- python -m pip install --upgrade --user pip
# - name: windows/cu100
# os: windows
# language: shell
...
...
@@ -103,35 +95,38 @@ jobs:
# - choco install python --version 3.7.6
install
:
-
pip3 install --upgrade pip
-
pip3 install wheel
-
source script/install.sh
-
pip3 install numpy
-
pip3 install torch==${TORCH} -f https://download.pytorch.org/whl/torch_stable.html
-
pip3 install flake8
-
pip3 install codecov
-
python3 setup.py install || python setup.py install
-
source script/conda.sh
-
conda create -yes -n test python=3.7.6
-
source activate test
-
conda install pytorch=${TORCH_VERSION} {$TOOLKIT} -c pytorch
-
python setup.py install
# - pip3 install --upgrade pip
# - pip3 install wheel
# - pip3 install numpy
# - pip3 install torch==${TORCH} -f https://download.pytorch.org/whl/torch_stable.html
# - pip3 install flake8
# - pip3 install codecov
script
:
-
flake8 .
-
python3 setup.py test || python setup.py test
after_success
:
-
if [ "${TRAVIS_OS_NAME}" != "windows" ]; then python3 setup.py bdist_wheel --dist-dir=dist/${IDX}; fi
-
if [ "${TRAVIS_OS_NAME}" = "windows" ]; then python setup.py bdist_wheel --dist-dir=dist/${IDX}; fi
-
codecov
deploy
:
provider
:
s3
edge
:
true
skip_cleanup
:
true
access_key_id
:
AKIAJB7S6NJ5OM5MAAGA
secret_access_key
:
${S3_SECRET_ACCESS_KEY}
bucket
:
pytorch-scatter
local-dir
:
dist/${IDX}
upload-dir
:
whl/${IDX}
acl
:
public_read
on
:
repo
:
rusty1s/pytorch_scatter
# tags: true
branch
:
travis
# script:
# - flake8 .
# - python3 setup.py test || python setup.py test
# after_success:
# - if [ "${TRAVIS_OS_NAME}" != "windows" ]; then python3 setup.py bdist_wheel --dist-dir=dist/${IDX}; fi
# - if [ "${TRAVIS_OS_NAME}" = "windows" ]; then python setup.py bdist_wheel --dist-dir=dist/${IDX}; fi
# - codecov
# deploy:
# provider: s3
# edge: true
# access_key_id: AKIAJB7S6NJ5OM5MAAGA
# secret_access_key: ${S3_SECRET_ACCESS_KEY}
# bucket: pytorch-scatter
# local_dir: dist/${IDX}
# upload_dir: whl/${IDX}
# acl: public_read
# on:
# repo: rusty1s/pytorch_scatter
# # tags: true
# branch: travis
notifications
:
email
:
false
script/conda.sh
0 → 100755
View file @
fe4c7188
#!/bin/bash
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"linux"
]
;
then
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
-O
miniconda.sh
chmod
+x miniconda.sh
./miniconda.sh
-b
PATH
=
/home/travis/miniconda/bin:
${
PATH
}
conda update
--yes
conda
fi
script/install.sh
View file @
fe4c7188
...
...
@@ -21,5 +21,5 @@ fi
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
${
IDX
}
"
!=
"cpu"
]
;
then
wget
"https://developer.nvidia.com/compute/cuda/
${
CUDA_SHORT
}
/Prod2/local_installers2/cuda_
${
CUDA
}
_win10"
./cuda_
${
CUDA
}
_win10
#
./cuda_${CUDA}_win10
fi
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