Skip to content

Commit

Permalink
fix: ifort 2022.3.0 & greater ICE bug in alltoall test + missing inpu…
Browse files Browse the repository at this point in the history
…t nmls in mpp scripts (#1158)
  • Loading branch information
rem1776 authored Jun 20, 2023
1 parent cf5035f commit ecc1361
Show file tree
Hide file tree
Showing 15 changed files with 48 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test_fms/mpp/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ test_mpp_clock_begin_end_id_SOURCES=test_mpp_clock_begin_end_id.F90
test_super_grid_SOURCES = test_super_grid.F90
test_mpp_chksum_SOURCES = test_mpp_chksum.F90

# ifort gets a internal error during compilation for this test, issue #1071
# we'll just remove the openmp flag if present since it doesn't use openmp at all
test_mpp_alltoall.$(OBJEXT): FCFLAGS:= $(filter-out -fopenmp,$(FCFLAGS))
test_mpp_alltoall.$(OBJEXT): CPPFLAGS:= $(filter-out -fopenmp,$(CPPFLAGS))


# Run the test programs.
TESTS = test_mpp_domains2.sh \
test_redistribute_int.sh \
Expand Down
3 changes: 3 additions & 0 deletions test_fms/mpp/test_clock_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
# Set common test settings.
. ../test-lib.sh

# ensure input.nml file present
touch input.nml

test_expect_success "clock initialization" '
mpirun -n 1 ./test_clock_init
'
Expand Down
3 changes: 3 additions & 0 deletions test_fms/mpp/test_global_arrays.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
# Set common test settings.
. ../test-lib.sh

# ensure input.nml file present
touch input.nml

test_expect_success "global array functions with mixed precision" '
mpirun -n 8 ./test_global_arrays
'
Expand Down
3 changes: 3 additions & 0 deletions test_fms/mpp/test_mpp_alltoall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
# Set common test settings.
. ../test-lib.sh

# ensure input.nml file present
touch input.nml

# Run the test for one processor
test_expect_success "mpp all-to-all with mixed precision" '
mpirun -n 4 ./test_mpp_alltoall
Expand Down
3 changes: 3 additions & 0 deletions test_fms/mpp/test_mpp_global_sum_ad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
# Set common test settings.
. ../test-lib.sh

# ensure input.nml file present
touch input.nml

# Run the test
test_expect_success "mpp global adjoint sum with mixed precision" '
mpirun -n 4 ./test_mpp_global_sum_ad
Expand Down
3 changes: 3 additions & 0 deletions test_fms/mpp/test_mpp_npes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
# Set common test settings.
. ../test-lib.sh

# ensure input.nml file present
touch input.nml

export NUM_PES=1
test_expect_success "get number of PEs single processor" '
mpirun -n 1 ./test_mpp_npes
Expand Down
2 changes: 2 additions & 0 deletions test_fms/mpp/test_mpp_pe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
# Set common test settings.
. ../test-lib.sh

# ensure input.nml file present
touch input.nml

# Run the tests
test_expect_success "get current PE single processor" '
Expand Down
3 changes: 3 additions & 0 deletions test_fms/mpp/test_mpp_root_pe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
# Set common test settings.
. ../test-lib.sh

# ensure input.nml file present
touch input.nml

# Run the test
test_expect_success "get correct root PE single processor" '
mpirun -n 1 ./test_mpp_root_pe
Expand Down
3 changes: 3 additions & 0 deletions test_fms/mpp/test_mpp_sum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
# Set common test settings.
. ../test-lib.sh

# ensure input.nml file present
touch input.nml

# Run the test for 5 processors
test_expect_success "mpp_sum with mixed precision" '
mpirun -n 5 ./test_mpp_sum
Expand Down
3 changes: 3 additions & 0 deletions test_fms/mpp/test_mpp_transmit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
# Set common test settings.
. ../test-lib.sh

# ensure input.nml file present
touch input.nml

# Run the test for 5 processors
test_expect_success "mpp transmit with mixed precision" '
mpirun -n 6 ./test_mpp_transmit
Expand Down
3 changes: 3 additions & 0 deletions test_fms/mpp/test_stderr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
# Set common test settings.
. ../test-lib.sh

# ensure input.nml file present
touch input.nml

test_expect_success "get stderr" '
mpirun -n 1 ./test_stderr
'
Expand Down
3 changes: 3 additions & 0 deletions test_fms/mpp/test_stdin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
# Set common test settings.
. ../test-lib.sh

# ensure input.nml file present
touch input.nml

test_expect_success "correct STDIN writes" '
mpirun -n 1 ./test_stdin
'
Expand Down
3 changes: 3 additions & 0 deletions test_fms/mpp/test_stdout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
# Set common test settings.
. ../test-lib.sh

# ensure input.nml file present
touch input.nml

# Run test with one processor
test_expect_success "get stdout with 1 PE" '
mpirun -n 2 ./test_stdout
Expand Down
3 changes: 3 additions & 0 deletions test_fms/mpp/test_system_clock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
# Set common test settings.
. ../test-lib.sh

# ensure input.nml file present
touch input.nml

# Run the test for one processor
test_expect_success "system clock functionality" '
mpirun -n 1 ./test_system_clock
Expand Down
4 changes: 4 additions & 0 deletions test_fms/mpp/test_update_domains_performance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

# Set common test settings.
. ../test-lib.sh

# ensure input.nml file present
touch input.nml

# Run the test for one processor
test_expect_success "domain update performance with 1 PE" '
mpirun -n 1 ./test_update_domains_performance
Expand Down

0 comments on commit ecc1361

Please sign in to comment.