Skip to content

Commit

Permalink
Merge pull request #458 from Infinoid/citests
Browse files Browse the repository at this point in the history
Define CUDA CI actions
  • Loading branch information
stephenchouca authored May 19, 2021
2 parents 2289a7f + 8102b4e commit 4221041
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/buildandtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,33 +77,3 @@ jobs:
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_PARALLEL_LEVEL: 2
working-directory: build

build-gpu:
name: build taco for gpu, but does not run tests
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2
- name: download cuda
run: wget http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_440.33.01_linux.run
- name: install cuda
run: sudo sh cuda_10.2.89_440.33.01_linux.run --silent --toolkit --installpath="$GITHUB_WORKSPACE/cuda"
- name: add path
run: echo "$GITHUB_WORKSPACE/cuda/bin" >> $GITHUB_PATH
- name: set ld_library_path
run: echo "LD_LIBRARY_PATH=$GITHUB_WORKSPACE/cuda/lib64" >> $GITHUB_ENV
- name: set library_path
run: echo "LIBRARY_PATH=$GITHUB_WORKSPACE/cuda/lib64" >> $GITHUB_ENV
- name: print environment
run: |
echo ${PATH}
echo ${LD_LIBRARY_PATH}
echo ${LIBRARY_PATH}
- name: create_build
run: mkdir build
- name: cmake
run: cmake -DCUDA=ON ..
working-directory: build
- name: make
run: make -j2
working-directory: build
42 changes: 42 additions & 0 deletions .github/workflows/cuda-test-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "CUDA build and test (manual)"

# Note: This workflow is triggered by hand by TACO developers.
# It should be run after the code has been reviewed by humans.
# This review step is important to ensure the safety of the
# self-hosted runner.

on:
workflow_dispatch:
inputs:
CMAKE_BUILD_TYPE:
description: CMAKE_BUILD_TYPE
required: true
default: Debug
OPENMP:
description: OPENMP
required: true
default: 'ON'
PYTHON:
description: PYTHON
required: true
default: 'OFF'
jobs:
ubuntu1604-cuda:
name: tests ubuntu 16.04 with CUDA 9
runs-on: [self-hosted, ubuntu-16.04, cuda]
steps:
- uses: actions/checkout@v2
- name: create_build
run: mkdir build
- name: cmake
run: cmake -DCMAKE_BUILD_TYPE=${{ github.event.inputs.CMAKE_BUILD_TYPE }} -DCUDA=ON -DOPENMP=${{ github.event.inputs.OPENMP }} -DPYTHON=${{ github.event.inputs.PYTHON }} ..
working-directory: build
- name: make
run: make -j8
working-directory: build
- name: test
run: make test
env:
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_PARALLEL_LEVEL: 8
working-directory: build

0 comments on commit 4221041

Please sign in to comment.