-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 1.73 KB
/
build_and_test_amd_openmp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: AMD-OpenMP
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build_and_test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: install_deps
run: |
export DEBIAN_FRONTEND="noninteractive"
export TZ="America/Los_Angeles"
sudo apt-get update -qq
sudo apt-get install -qq -y git-core gcc g++ cmake automake m4 wget swig python3
wget https://repo.radeon.com/amdgpu-install/5.4.3/ubuntu/jammy/amdgpu-install_5.4.50403-1_all.deb
sudo apt-get install ./amdgpu-install_5.4.50403-1_all.deb
sudo amdgpu-install --usecase=rocm,openclsdk,hiplibsdk --no-dkms
python3 -mvenv py3k_testing
source py3k_testing/bin/activate
python3 -mpip install numpy
# build for OpenMP
- name: build_openmp
run: |
source py3k_testing/bin/activate
mkdir build_amd_openmp
cd build_amd_openmp
cmake -DCMAKE_CXX_COMPILER=/opt/rocm/llvm/bin/clang++ -DHAMR_OPENMP_ARCH=gfx1030 -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DHAMR_ENABLE_OPENMP=ON -DCMAKE_INSTALL_PREFIX=`pwd`/../../hamr-install-amd-omp ..
make -j2 install
cd ..
# build for OpenMP
- name: build_openmp_separate_impl
run: |
source py3k_testing/bin/activate
mkdir build_amd_openmp_sep
cd build_amd_openmp_sep
cmake -DCMAKE_CXX_COMPILER=/opt/rocm/llvm/bin/clang++ -DHAMR_OPENMP_ARCH=gfx1030 -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DHAMR_ENABLE_OPENMP=ON -DHAMR_EMABLE_SEPARATE_IMPL=ON -DCMAKE_INSTALL_PREFIX=`pwd`/../../hamr-install-amd-omp-sep ..
make -j2 install
cd ..