Skip to content

Commit 030ea4f

Browse files
committed
[ventus][NFC] Update workflow script
1 parent 64ebe15 commit 030ea4f

File tree

2 files changed

+53
-33
lines changed

2 files changed

+53
-33
lines changed

.github/workflows/ventus-build.yml

Lines changed: 52 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: Build VENTUS
22
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
84
RODINIA: gpu-rodinia
95
on:
106
push:
@@ -19,81 +15,104 @@ jobs:
1915
runs-on: ubuntu-latest
2016
steps:
2117

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
2446

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
2654
uses: actions/setup-node@v3
2755
with:
2856
node-version: 16.x
2957
registry-url: 'https://registry.npmjs.org'
3058

31-
32-
- name: Install Ninja
59+
- name: Install ninja
3360
uses: llvm/actions/install-ninja@main
3461

35-
- name: Install Other needed packages # maybe install llvm release is a better choice
62+
- name: Install Other needed packages
3663
run: |
3764
sudo apt-get install -y \
3865
device-tree-compiler \
3966
bsdmainutils \
4067
ccache
4168
42-
- name: Clone needed packages
69+
- name: Download data
4370
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
5776
5877
- name: Start building llvm-ventus
5978
shell: bash
6079
run: |
61-
bash build-ventus.sh --build llvm
80+
bash ${{github.workspace}}/$LLVM/build-ventus.sh --build llvm
6281
6382
- name: Start building ocl-icd
6483
shell: bash
6584
run: |
66-
bash build-ventus.sh --build ${OCL_ICD}
85+
bash ${{github.workspace}}/$LLVM/build-ventus.sh --build ocl-icd
6786
6887
- name: Start building libclc
6988
shell: bash
7089
run: |
71-
bash build-ventus.sh --build libclc
90+
bash ${{github.workspace}}/$LLVM/build-ventus.sh --build libclc
7291
7392
- name: Start building spike
7493
shell: bash
7594
run: |
76-
bash build-ventus.sh --build spike
95+
bash ${{github.workspace}}/$LLVM/build-ventus.sh --build spike
7796
7897
- name: Start building driver
7998
shell: bash
8099
run: |
81-
bash build-ventus.sh --build driver
100+
bash ${{github.workspace}}/$LLVM/build-ventus.sh --build driver
82101
83102
- name: Start building pocl
84103
shell: bash
85104
run: |
86-
bash build-ventus.sh --build ${POCL}
105+
bash ${{github.workspace}}/$LLVM/build-ventus.sh --build pocl
87106
88107
- name: Start testing gpu-rodinia
89108
shell: bash
90109
run: |
91-
bash build-ventus.sh --build rodinia
110+
bash ${{github.workspace}}/$LLVM/build-ventus.sh --build rodinia
92111
93112
- name: Start testing pocl
94113
shell: bash
95114
run: |
96-
bash build-ventus.sh --build test-pocl
115+
bash ${{github.workspace}}/$LLVM/build-ventus.sh --build test-pocl
97116
98117
- name: Start ISA simulation test
99118
run: |

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Download all the repositories firstly and place them in the same path.
2020
* ocl-icd : git clone https://github.com/OCL-dev/ocl-icd.git
2121
* isa-simulator(spike) : git clone https://github.com/THU-DSP-LAB/ventus-gpgpu-isa-simulator.git
2222
* driver : git clone https://github.com/THU-DSP-LAB/ventus-driver.git
23+
* rodinia : git clone https://github.com/THU-DSP-LAB/gpu-rodinia.git (The method to download the dataset is in the `ventus_readme.md`.)
2324

2425
> ATTENTION: Remember to check branch for every repository, cause the project are under development, if you get any build errors, feel free to give an issue or just contact authors
2526

0 commit comments

Comments
 (0)