File tree Expand file tree Collapse file tree 2 files changed +42
-30
lines changed Expand file tree Collapse file tree 2 files changed +42
-30
lines changed Original file line number Diff line number Diff line change 77
77
CTEST_OUTPUT_ON_FAILURE : 1
78
78
CTEST_PARALLEL_LEVEL : 2
79
79
working-directory : build
80
-
81
- build-gpu :
82
- name : build taco for gpu, but does not run tests
83
- runs-on : ubuntu-18.04
84
-
85
- steps :
86
- - uses : actions/checkout@v2
87
- - name : download cuda
88
- run : wget http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_10.2.89_440.33.01_linux.run
89
- - name : install cuda
90
- run : sudo sh cuda_10.2.89_440.33.01_linux.run --silent --toolkit --installpath="$GITHUB_WORKSPACE/cuda"
91
- - name : add path
92
- run : echo "$GITHUB_WORKSPACE/cuda/bin" >> $GITHUB_PATH
93
- - name : set ld_library_path
94
- run : echo "LD_LIBRARY_PATH=$GITHUB_WORKSPACE/cuda/lib64" >> $GITHUB_ENV
95
- - name : set library_path
96
- run : echo "LIBRARY_PATH=$GITHUB_WORKSPACE/cuda/lib64" >> $GITHUB_ENV
97
- - name : print environment
98
- run : |
99
- echo ${PATH}
100
- echo ${LD_LIBRARY_PATH}
101
- echo ${LIBRARY_PATH}
102
- - name : create_build
103
- run : mkdir build
104
- - name : cmake
105
- run : cmake -DCUDA=ON ..
106
- working-directory : build
107
- - name : make
108
- run : make -j2
109
- working-directory : build
Original file line number Diff line number Diff line change
1
+ name : " CUDA build and test (manual)"
2
+
3
+ # Note: This workflow is triggered by hand by TACO developers.
4
+ # It should be run after the code has been reviewed by humans.
5
+ # This review step is important to ensure the safety of the
6
+ # self-hosted runner.
7
+
8
+ on :
9
+ workflow_dispatch :
10
+ inputs :
11
+ CMAKE_BUILD_TYPE :
12
+ description : CMAKE_BUILD_TYPE
13
+ required : true
14
+ default : Debug
15
+ OPENMP :
16
+ description : OPENMP
17
+ required : true
18
+ default : ' ON'
19
+ PYTHON :
20
+ description : PYTHON
21
+ required : true
22
+ default : ' OFF'
23
+ jobs :
24
+ ubuntu1604-cuda :
25
+ name : tests ubuntu 16.04 with CUDA 9
26
+ runs-on : [self-hosted, ubuntu-16.04, cuda]
27
+ steps :
28
+ - uses : actions/checkout@v2
29
+ - name : create_build
30
+ run : mkdir build
31
+ - name : cmake
32
+ run : cmake -DCMAKE_BUILD_TYPE=${{ github.event.inputs.CMAKE_BUILD_TYPE }} -DCUDA=ON -DOPENMP=${{ github.event.inputs.OPENMP }} -DPYTHON=${{ github.event.inputs.PYTHON }} ..
33
+ working-directory : build
34
+ - name : make
35
+ run : make -j8
36
+ working-directory : build
37
+ - name : test
38
+ run : make test
39
+ env :
40
+ CTEST_OUTPUT_ON_FAILURE : 1
41
+ CTEST_PARALLEL_LEVEL : 8
42
+ working-directory : build
You can’t perform that action at this time.
0 commit comments