-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: linux-x64-gcc-cpu | ||
on: [push, pull_request] | ||
jobs: | ||
linux-x64-gcc-cpu: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: install dependencies | ||
run: | | ||
pip install --upgrade pip | ||
pip install -v -e . | ||
pip install nose | ||
- name: install MXNet | ||
run: pip install mxnet --pre -f https://dist.mxnet.io/python/all | ||
- name: install PyTorch | ||
run: pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html | ||
- name: cpu-test | ||
run: nosetests -s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: linux-x64-gcc-gpu | ||
on: [push, pull_request] | ||
jobs: | ||
linux-x64-gcc-gpu: | ||
runs-on: ubuntu-latest | ||
env: | ||
CUDA: 10.1.105-1 | ||
CUDA_SHORT: 10.1 | ||
UBUNTU_VERSION: ubuntu1804 | ||
FORCE_CUDA: 1 | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install CUDA | ||
run: | | ||
export INSTALLER=cuda-repo-${UBUNTU_VERSION}_${CUDA}_amd64.deb | ||
wget http://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/${INSTALLER} | ||
sudo dpkg -i ${INSTALLER} | ||
wget https://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/7fa2af80.pub | ||
sudo apt-key add 7fa2af80.pub | ||
sudo apt update -qq | ||
sudo apt install -y cuda-${CUDA_SHORT/./-} cuda-cufft-dev-${CUDA_SHORT/./-} | ||
sudo apt clean | ||
export CUDA_HOME=/usr/local/cuda-${CUDA_SHORT} | ||
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${CUDA_HOME}/include:${LD_LIBRARY_PATH} | ||
export PATH=${CUDA_HOME}/bin:${PATH} | ||
- name: install dependencies | ||
run: | | ||
pip install --upgrade pip | ||
pip install -v -e . | ||
pip install nose | ||
- name: install MXNet | ||
run: pip install mxnet-cu101 -f https://dist.mxnet.io/python/all | ||
- name: cpu-test | ||
run: nosetests -s | ||
- name: gpu-test | ||
run: nosetests tests/gpu/test_gpu.py -s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters