Skip to content

Commit

Permalink
Merge bb9f319 into 183a9dc
Browse files Browse the repository at this point in the history
  • Loading branch information
wkcn committed Jul 19, 2020
2 parents 183a9dc + bb9f319 commit f76574b
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/linux-x64-gcc-cpu.yml
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
44 changes: 44 additions & 0 deletions .github/workflows/linux-x64-gcc-gpu.yml
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# MobulaOP

Linux | Windows | Coverage | Badge
------|---------|----------|------
[![Linux Build Status](https://api.travis-ci.org/wkcn/MobulaOP.svg?branch=master)](https://travis-ci.org/wkcn/MobulaOP)|[![Windows Build Status](https://ci.appveyor.com/api/projects/status/bvnavb8k2xnu0wqj/branch/master?svg=true)](https://ci.appveyor.com/project/wkcn/mobulaop/branch/master)|[![Coverage Status](https://coveralls.io/repos/github/wkcn/MobulaOP/badge.svg?branch=master)](https://coveralls.io/github/wkcn/MobulaOP?branch=master)|[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)
Linux | Windows | Actions | Coverage | Badge
------|---------|---------|----------|------
[![Linux Build Status](https://api.travis-ci.org/wkcn/MobulaOP.svg?branch=master)](https://travis-ci.org/wkcn/MobulaOP)|[![Windows Build Status](https://ci.appveyor.com/api/projects/status/bvnavb8k2xnu0wqj/branch/master?svg=true)](https://ci.appveyor.com/project/wkcn/mobulaop/branch/master)|[![Github Actions Status](https://github.com/wkcn/MobulaOP/workflows/linux-x64-gcc/badge.svg)](https://github.com/wkcn/MobulaOP/actions?query=workflow%3Alinux-x64-gcc)|[![Coverage Status](https://coveralls.io/repos/github/wkcn/MobulaOP/badge.svg?branch=master)](https://coveralls.io/github/wkcn/MobulaOP?branch=master)|[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)

## What is it?
*MobulaOP* is a simple and flexible cross framework operators toolkit.
Expand Down

0 comments on commit f76574b

Please sign in to comment.