Skip to content

Commit dafcf27

Browse files
committed
add 1st level tests
1 parent 9ab7ecf commit dafcf27

1 file changed

Lines changed: 112 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,61 @@ jobs:
183183
run: python3 scripts/run_tests.py --running-type="threads"
184184
env:
185185
OMP_NUM_THREADS: 4
186+
ubuntu-gcc-arm64-test:
187+
needs:
188+
- ubuntu-gcc-arm64-build
189+
runs-on: ubuntu-24.04-arm
190+
steps:
191+
- uses: actions/checkout@v4
192+
- name: Setup environment
193+
run: |
194+
sudo apt-get update
195+
sudo apt-get install --no-install-recommends -y gcc-14 g++-14 ninja-build libmpich-dev libomp-dev valgrind
196+
python3 -m pip install -r requirements.txt
197+
- name: Download installed package
198+
uses: actions/download-artifact@v4
199+
with:
200+
name: ubuntu-gcc-arm64-install
201+
- name: Extract installed package
202+
run: |
203+
mkdir -p install
204+
tar -xzvf ubuntu-gcc-arm64-install.tar.gz -C install
205+
- name: Run func tests (MPI, num_proc=1)
206+
run: python3 scripts/run_tests.py --running-type="processes"
207+
env:
208+
PROC_COUNT: 1
209+
OMP_NUM_THREADS: 3
210+
- name: Run func tests (MPI, num_proc=2)
211+
run: python3 scripts/run_tests.py --running-type="processes"
212+
env:
213+
PROC_COUNT: 2
214+
OMP_NUM_THREADS: 2
215+
- name: Run func tests (MPI, num_proc=3)
216+
run: python3 scripts/run_tests.py --running-type="processes"
217+
env:
218+
PROC_COUNT: 3
219+
OMP_NUM_THREADS: 1
220+
- name: Run func tests (MPI, num_proc=4)
221+
run: python3 scripts/run_tests.py --running-type="processes"
222+
env:
223+
PROC_COUNT: 4
224+
OMP_NUM_THREADS: 1
225+
- name: Run func tests (threads, num_threads=1)
226+
run: python3 scripts/run_tests.py --running-type="threads"
227+
env:
228+
OMP_NUM_THREADS: 1
229+
- name: Run func tests (threads, num_threads=2)
230+
run: python3 scripts/run_tests.py --running-type="threads"
231+
env:
232+
OMP_NUM_THREADS: 2
233+
- name: Run func tests (threads, num_threads=3)
234+
run: python3 scripts/run_tests.py --running-type="threads"
235+
env:
236+
OMP_NUM_THREADS: 3
237+
- name: Run func tests (threads, num_threads=4)
238+
run: python3 scripts/run_tests.py --running-type="threads"
239+
env:
240+
OMP_NUM_THREADS: 4
186241
ubuntu-gcc-test-extended:
187242
needs:
188243
- ubuntu-gcc-test
@@ -388,6 +443,63 @@ jobs:
388443
run: python3 scripts/run_tests.py --running-type="threads"
389444
env:
390445
OMP_NUM_THREADS: 4
446+
ubuntu-clang-arm64-test:
447+
needs:
448+
- ubuntu-clang-arm64-build
449+
runs-on: ubuntu-24.04-arm
450+
steps:
451+
- uses: actions/checkout@v4
452+
- name: Setup environment
453+
run: |
454+
sudo apt-get update
455+
sudo apt-get install --no-install-recommends -y ninja-build libmpich-dev python3-pip valgrind
456+
wget https://apt.llvm.org/llvm.sh
457+
chmod u+x llvm.sh
458+
sudo ./llvm.sh 20 all
459+
- name: Download installed package
460+
uses: actions/download-artifact@v4
461+
with:
462+
name: ubuntu-clang-arm64-install
463+
- name: Extract installed package
464+
run: |
465+
mkdir -p install
466+
tar -xzvf ubuntu-clang-arm64-install.tar.gz -C install
467+
- name: Run func tests (MPI, num_proc=1)
468+
run: python3 scripts/run_tests.py --running-type="processes"
469+
env:
470+
PROC_COUNT: 1
471+
OMP_NUM_THREADS: 3
472+
- name: Run func tests (MPI, num_proc=2)
473+
run: python3 scripts/run_tests.py --running-type="processes"
474+
env:
475+
PROC_COUNT: 2
476+
OMP_NUM_THREADS: 2
477+
- name: Run func tests (MPI, num_proc=3)
478+
run: python3 scripts/run_tests.py --running-type="processes"
479+
env:
480+
PROC_COUNT: 3
481+
OMP_NUM_THREADS: 1
482+
- name: Run func tests (MPI, num_proc=4)
483+
run: python3 scripts/run_tests.py --running-type="processes"
484+
env:
485+
PROC_COUNT: 4
486+
OMP_NUM_THREADS: 1
487+
- name: Run tests (threads, num_threads=1)
488+
run: python3 scripts/run_tests.py --running-type="threads"
489+
env:
490+
OMP_NUM_THREADS: 1
491+
- name: Run tests (threads, num_threads=2)
492+
run: python3 scripts/run_tests.py --running-type="threads"
493+
env:
494+
OMP_NUM_THREADS: 2
495+
- name: Run tests (threads, num_threads=3)
496+
run: python3 scripts/run_tests.py --running-type="threads"
497+
env:
498+
OMP_NUM_THREADS: 3
499+
- name: Run tests (threads, num_threads=4)
500+
run: python3 scripts/run_tests.py --running-type="threads"
501+
env:
502+
OMP_NUM_THREADS: 4
391503
ubuntu-clang-test-extended:
392504
needs:
393505
- ubuntu-clang-test

0 commit comments

Comments
 (0)