1
1
name : Build VENTUS
2
2
env :
3
- POCL : pocl
4
- OCL_ICD : ocl-icd
5
- ISA_SIMULATOR : ventus-gpgpu-isa-simulator
6
- BUILD_TYPE : Release
7
- VENTUS_DRIVER : ventus-driver
3
+ LLVM : llvm-project
8
4
RODINIA : gpu-rodinia
9
5
on :
10
6
push :
@@ -19,81 +15,104 @@ jobs:
19
15
runs-on : ubuntu-latest
20
16
steps :
21
17
22
- - name : Checkout LLVM
23
- uses : actions/checkout@v3
18
+ - name : Checkout llvm-ventus
19
+ uses : actions/checkout@v4
20
+ with :
21
+ path : llvm-project
22
+
23
+ - name : Checkout ocl-icd
24
+ uses : actions/checkout@v4
25
+ with :
26
+ repository : OCL-dev/ocl-icd
27
+ path : ocl-icd
28
+
29
+ - name : Checkout pocl
30
+ uses : actions/checkout@v4
31
+ with :
32
+ repository : THU-DSP-LAB/pocl
33
+ path : pocl
34
+
35
+ - name : Checkout driver
36
+ uses : actions/checkout@v4
37
+ with :
38
+ repository : THU-DSP-LAB/ventus-driver
39
+ path : ventus-driver
40
+
41
+ - name : Checkout spike
42
+ uses : actions/checkout@v4
43
+ with :
44
+ repository : THU-DSP-LAB/ventus-gpgpu-isa-simulator
45
+ path : ventus-gpgpu-isa-simulator
24
46
25
- - name : Use Node.js 16.x
47
+ - name : Checkout rodinia
48
+ uses : actions/checkout@v4
49
+ with :
50
+ repository : THU-DSP-LAB/gpu-rodinia
51
+ path : gpu-rodinia
52
+
53
+ - name : Use node.js 16.x
26
54
uses : actions/setup-node@v3
27
55
with :
28
56
node-version : 16.x
29
57
registry-url : ' https://registry.npmjs.org'
30
58
31
-
32
- - name : Install Ninja
59
+ - name : Install ninja
33
60
uses : llvm/actions/install-ninja@main
34
61
35
- - name : Install Other needed packages # maybe install llvm release is a better choice
62
+ - name : Install Other needed packages
36
63
run : |
37
64
sudo apt-get install -y \
38
65
device-tree-compiler \
39
66
bsdmainutils \
40
67
ccache
41
68
42
- - name : Clone needed packages
69
+ - name : Download data
43
70
run : |
44
- git clone https://github.com/THU-DSP-LAB/pocl.git ${{github.workspace}}/../$POCL
45
- git clone https://github.com/OCL-dev/ocl-icd.git ${{github.workspace}}/../$OCL_ICD
46
- git clone https://github.com/THU-DSP-LAB/ventus-gpgpu-isa-simulator.git ${{github.workspace}}/../$ISA_SIMULATOR
47
- git clone https://github.com/THU-DSP-LAB/ventus-driver.git ${{github.workspace}}/../$VENTUS_DRIVER
48
- git clone https://github.com/THU-DSP-LAB/gpu-rodinia.git ${{github.workspace}}/../$RODINIA
49
- export DRIVER_DIR=${{github.workspace}}/../$VENTUS_DRIVER
50
- export DRIVER_BUILD_DIR=${DRIVER_DIR}/build
51
- export VENTUS_INSTALL_PREFIX=${{github.workspace}}/install
52
- wget -P ${{github.workspace}}/../$RODINIA -c https://www.dropbox.com/s/cc6cozpboht3mtu/rodinia-3.1-data.tar.gz
53
- tar -zxvf ${{github.workspace}}/../$RODINIA/rodinia-3.1-data.tar.gz -C ${{github.workspace}}/../$RODINIA
54
- mv ${{github.workspace}}/../$RODINIA/rodinia-data/* ${{github.workspace}}/../$RODINIA/data/
55
- rm ${{github.workspace}}/../$RODINIA/rodinia-3.1-data.tar.gz
56
- rm ${{github.workspace}}/../$RODINIA/rodinia-data -rf
71
+ wget -P ${{github.workspace}}/$RODINIA -c https://www.dropbox.com/s/cc6cozpboht3mtu/rodinia-3.1-data.tar.gz
72
+ tar -zxvf ${{github.workspace}}/$RODINIA/rodinia-3.1-data.tar.gz -C ${{github.workspace}}/$RODINIA
73
+ mv ${{github.workspace}}/$RODINIA/rodinia-data/* ${{github.workspace}}/$RODINIA/data/
74
+ rm ${{github.workspace}}/$RODINIA/rodinia-* -rf
75
+ cd ${{github.workspace}}/$LLVM
57
76
58
77
- name : Start building llvm-ventus
59
78
shell : bash
60
79
run : |
61
- bash build-ventus.sh --build llvm
80
+ bash ${{github.workspace}}/$LLVM/ build-ventus.sh --build llvm
62
81
63
82
- name : Start building ocl-icd
64
83
shell : bash
65
84
run : |
66
- bash build-ventus.sh --build ${OCL_ICD}
85
+ bash ${{github.workspace}}/$LLVM/ build-ventus.sh --build ocl-icd
67
86
68
87
- name : Start building libclc
69
88
shell : bash
70
89
run : |
71
- bash build-ventus.sh --build libclc
90
+ bash ${{github.workspace}}/$LLVM/ build-ventus.sh --build libclc
72
91
73
92
- name : Start building spike
74
93
shell : bash
75
94
run : |
76
- bash build-ventus.sh --build spike
95
+ bash ${{github.workspace}}/$LLVM/ build-ventus.sh --build spike
77
96
78
97
- name : Start building driver
79
98
shell : bash
80
99
run : |
81
- bash build-ventus.sh --build driver
100
+ bash ${{github.workspace}}/$LLVM/ build-ventus.sh --build driver
82
101
83
102
- name : Start building pocl
84
103
shell : bash
85
104
run : |
86
- bash build-ventus.sh --build ${POCL}
105
+ bash ${{github.workspace}}/$LLVM/ build-ventus.sh --build pocl
87
106
88
107
- name : Start testing gpu-rodinia
89
108
shell : bash
90
109
run : |
91
- bash build-ventus.sh --build rodinia
110
+ bash ${{github.workspace}}/$LLVM/ build-ventus.sh --build rodinia
92
111
93
112
- name : Start testing pocl
94
113
shell : bash
95
114
run : |
96
- bash build-ventus.sh --build test-pocl
115
+ bash ${{github.workspace}}/$LLVM/ build-ventus.sh --build test-pocl
97
116
98
117
- name : Start ISA simulation test
99
118
run : |
0 commit comments