Skip to content

Fix MPI tests for intel MPI - #1098

Open
TomMelt wants to merge 1 commit into
developfrom
fix-ctest-mpiexec
Open

Fix MPI tests for intel MPI#1098
TomMelt wants to merge 1 commit into
developfrom
fix-ctest-mpiexec

Conversation

@TomMelt

@TomMelt TomMelt commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Fix MPI tests for intel MPI

Fixes #1097


Change Description

Simple change to specify path to binaries for intel MPI (will also work for openMPI)


Other Details

This fixes the issue, and now the tests run correctly.

Test output
$ ctest
Test project /home/tdm39/nextsimdg/build-mpi
    Start 1: testHaloExchangeCB_MPI3
1/6 Test #1: testHaloExchangeCB_MPI3 ..........***Failed    4.10 sec
    Start 2: testParaGrid_MPI2
2/6 Test #2: testParaGrid_MPI2 ................   Passed    2.94 sec
    Start 3: testRectGrid_MPI3
3/6 Test #3: testRectGrid_MPI3 ................   Passed    1.97 sec
    Start 4: testModelMetadataCB_MPI3
4/6 Test #4: testModelMetadataCB_MPI3 .........   Passed    1.66 sec
    Start 5: testModelMetadataPB_MPI3
5/6 Test #5: testModelMetadataPB_MPI3 .........   Passed    2.68 sec
    Start 6: testConfigOutput_MPI2
6/6 Test #6: testConfigOutput_MPI2 ............   Passed   14.18 sec

83% tests passed, 1 tests failed out of 6

Total Test time (real) =  27.58 sec

The following tests FAILED:
          1 - testHaloExchangeCB_MPI3 (Failed)
Errors while running CTest
Output from these tests are in: /home/tdm39/nextsimdg/build-mpi/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.

Interestingly, the testHaloExchangeCB_MPI3 "fails". The test actually runs, but the MPI clean up fails:

testHaloExchangeCB_MPI3 output
$ ctest --rerun-failed --output-on-failure
Test project /home/tdm39/nextsimdg/build-mpi
    Start 1: testHaloExchangeCB_MPI3
1/1 Test #1: testHaloExchangeCB_MPI3 ..........***Failed    0.99 sec
MPI startup(): Warning: I_MPI_PMI_LIBRARY will be ignored since the hydra process manager was found
MPI startup(): Warning: I_MPI_PMI_LIBRARY will be ignored since the hydra process manager was found
MPI startup(): Warning: I_MPI_PMI_LIBRARY will be ignored since the hydra process manager was found
[doctest] doctest version is "2.4.11"
[doctest] run with "--help" for options
===============================================================================
[doctest] test cases:   5 |   5 passed | 0 failed | 0 skipped
[doctest] assertions: 927 | 927 passed | 0 failed |
[doctest] Status: SUCCESS!
===============================================================================
[doctest] assertions on all processes:   2949 |   2949 passed |      0 failed |
===============================================================================
[doctest] Status: SUCCESS!
malloc_consolidate(): invalid chunk size
malloc_consolidate(): unaligned fastbin chunk detected

===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   RANK 1 PID 2924112 RUNNING AT cpu-q-565
=   KILLED BY SIGNAL: 6 (Aborted)
===================================================================================

===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   RANK 2 PID 2924113 RUNNING AT cpu-q-565
=   KILLED BY SIGNAL: 6 (Aborted)
===================================================================================


0% tests passed, 1 tests failed out of 1

Total Test time (real) =   1.02 sec

The following tests FAILED:
          1 - testHaloExchangeCB_MPI3 (Failed)
Errors while running CTest

I haven't had chance to look into this error. I think it should be handled as a separate PR. This PR does fix the intended problem described in the issue.

@TomMelt TomMelt self-assigned this Jul 30, 2026
@TomMelt TomMelt added the ICCS Tasks or reviews for the ICCS team label Jul 30, 2026
@TomMelt
TomMelt force-pushed the fix-ctest-mpiexec branch from 4a372c3 to 956662d Compare July 30, 2026 10:55
@TomMelt
TomMelt marked this pull request as ready for review July 30, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ICCS Tasks or reviews for the ICCS team

Projects

Development

Successfully merging this pull request may close these issues.

MPI tests fail under intel MPI

1 participant