From 569a5583a7ea6218fd3d42ebaa0c5e05d5651abf Mon Sep 17 00:00:00 2001 From: Franck HOUSSEN Date: Sun, 22 Jan 2023 11:55:58 +0100 Subject: [PATCH] Try to build and run MPI test suite on windows ?... --- .github/workflows/jobs.yml | 3 ++- CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jobs.yml b/.github/workflows/jobs.yml index 3d688cb87..3c213b21e 100644 --- a/.github/workflows/jobs.yml +++ b/.github/workflows/jobs.yml @@ -269,6 +269,7 @@ jobs: mingw-w64-x86_64-ninja mingw-w64-x86_64-gcc-fortran mingw-w64-x86_64-openblas + mingw-w64-x86_64-msmpi - name: Clone and check out repository code uses: actions/checkout@v2 with: @@ -281,6 +282,6 @@ jobs: - name: Run job run: | mkdir -p build && cd build - cmake -GNinja -DICB=ON -DEXAMPLES=ON .. + cmake -GNinja -DICB=ON -DMPI=ON -DEXAMPLES=ON .. cmake --build . -v ctest --output-on-failure diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b15bea67..f0dba3956 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,7 +72,7 @@ function(pexamples list_name) get_filename_component(lwe ${l} NAME_WE) add_executable(${lwe} ${parpackexample_DIR}/${l} ) target_link_libraries(${lwe} parpack arpack MPI::MPI_Fortran) - add_test(NAME "${lwe}_ex" COMMAND mpirun -n 2 ./${lwe} WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) + add_test(NAME "${lwe}_ex" COMMAND mpirun -n 2 ./${lwe}) endforeach() endfunction(pexamples)