forked from GRTLCollaboration/GRChombo
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.74 KB
/
run-grchombo-tests-intel.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
50
51
52
53
54
name: Run GRChombo Tests (Intel)
on: [push]
jobs:
build-and-test:
runs-on: ubuntu-20.04
env:
CHOMBO_HOME: ${{ github.workspace }}/Chombo/lib
OMP_NUM_THREADS: 1
steps:
- name: Checkout Chombo
uses: actions/checkout@v2
with:
repository: GRChombo/Chombo
path: Chombo
- name: Checkout GRChombo
uses: actions/checkout@v2
with:
path: GRChombo
- name: Install Chombo dependencies
run: |
sudo apt-get update
sudo apt-get -y --no-install-recommends install csh libgetopt-complete-perl
- name: Install Intel compilers/MPI
run: |
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
sudo apt-get -y install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic intel-oneapi-compiler-fortran intel-oneapi-mkl intel-oneapi-mpi intel-oneapi-mpi-devel intel-oneapi-openmp
working-directory: /tmp
- name: Build Chombo
run: |
source /opt/intel/oneapi/setvars.sh
cp $GITHUB_WORKSPACE/GRChombo/InstallNotes/MakeDefsLocalExamples/intel-no-hdf5-minimal.Make.defs.local $CHOMBO_HOME/mk/Make.defs.local
make -j 4 AMRTimeDependent AMRTools BaseTools BoxTools
working-directory: ${{ env.CHOMBO_HOME }}
- name: Build GRChombo Tests
run: |
source /opt/intel/oneapi/setvars.sh
make test -j 4
working-directory: ${{ github.workspace }}/GRChombo
- name: Run GRChombo Tests
run: |
source /opt/intel/oneapi/setvars.sh
make run -j 2
working-directory: ${{ github.workspace }}/GRChombo