Skip to content

Commit 4a85c45

Browse files
committed
Merge branch 'perf_tests' of https://github.com/Amazingkivas/FDTD_Method into perf_tests
2 parents 1f720c8 + c69562f commit 4a85c45

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,26 @@ jobs:
4949
shell: bash
5050
run: |
5151
${PWD}/bin/sample
52+
53+
- name: Install Intel OneAPI (ifort)
54+
run: |
55+
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
56+
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
57+
sudo apt-get update
58+
sudo apt-get install -y intel-oneapi-compiler-fortran
59+
60+
- name: Compile and Run Coarray program with ifx
61+
shell: bash
62+
run: |
63+
source /opt/intel/oneapi/setvars.sh intel64
64+
65+
echo "--- Verifying installation ---"
66+
which ifx
67+
ifx -v
68+
69+
echo "--- Compiling Coarray program ---"
70+
ifx -coarray ${PWD}/coarray/fdtd.F90 -o fdtd
71+
72+
echo "--- Running Coarray program ---"
73+
export FOR_COARRAY_NUM_IMAGES=4
74+
${PWD}/fdtd

0 commit comments

Comments
 (0)