Skip to content

Define CUDA CI actions #458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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