From d779532adb7d1d004d73e6a7ad38cf9a31d0af6c Mon Sep 17 00:00:00 2001 From: Cody Balos Date: Mon, 26 Feb 2024 10:45:10 -0800 Subject: [PATCH] test intel mpi on windows --- ...est-ninja.yml => windows-latest-intel.yml} | 33 +++++++++++++------ ...ows-latest.yml => windows-latest-msvc.yml} | 0 2 files changed, 23 insertions(+), 10 deletions(-) rename .github/workflows/{windows-latest-ninja.yml => windows-latest-intel.yml} (52%) rename .github/workflows/{windows-latest.yml => windows-latest-msvc.yml} (100%) diff --git a/.github/workflows/windows-latest-ninja.yml b/.github/workflows/windows-latest-intel.yml similarity index 52% rename from .github/workflows/windows-latest-ninja.yml rename to .github/workflows/windows-latest-intel.yml index c38b8bb458..3ec8b477eb 100644 --- a/.github/workflows/windows-latest-ninja.yml +++ b/.github/workflows/windows-latest-intel.yml @@ -33,26 +33,39 @@ jobs: - name: Configure CMake (Shared) run: cmake -G "Ninja" -B ${{github.workspace}}/build_shared -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=icx-cl -DCMAKE_CXX_COMPILER=icx-cl -DCMAKE_Fortran_COMPILER=ifx -DBUILD_STATIC_LIBS=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_FORTRAN_MODULE_INTERFACE=ON -DSUNDIALS_BUILD_WITH_PROFILING=ON -DSUNDIALS_TEST_UNITTESTS=OFF -DEXAMPLES_ENABLE_CXX=ON - - name: Build - # Build your program with the given configuration + - name: Build Shared run: cmake --build ${{github.workspace}}/build_shared - - name: Test + - name: Test Shared working-directory: ${{github.workspace}}/build_shared - # Execute tests defined by the CMake configuration. - # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail + run: ctest -C ${{env.BUILD_TYPE}} + + - name: Configure CMake (Shared + MPI) + run: cmake -G "Ninja" -B ${{github.workspace}}/build_shared_mpi -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=icx-cl -DCMAKE_CXX_COMPILER=icx-cl -DCMAKE_Fortran_COMPILER=ifx -DBUILD_STATIC_LIBS=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_FORTRAN_MODULE_INTERFACE=ON -DSUNDIALS_BUILD_WITH_PROFILING=ON -DSUNDIALS_TEST_UNITTESTS=OFF -DEXAMPLES_ENABLE_CXX=ON -DENABLE_MPI=ON -DMPI_C_COMPILER=mpicc -DMPI_CXX_COMPILER=mpicxx -DMPI_Fortran_COMPILER=mpif90 + + - name: Build Shared + MPI + run: cmake --build ${{github.workspace}}/build_shared_mpi + + - name: Test Shared + MPI + working-directory: ${{github.workspace}}/build_shared_mpi run: ctest -C ${{env.BUILD_TYPE}} - name: Configure CMake (Static) run: cmake -G "Ninja" -B ${{github.workspace}}/build_static -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=icx-cl -DCMAKE_CXX_COMPILER=icx-cl -DCMAKE_Fortran_COMPILER=ifx -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_FORTRAN_MODULE_INTERFACE=ON -DSUNDIALS_BUILD_WITH_PROFILING=ON -DSUNDIALS_TEST_UNITTESTS=OFF -DEXAMPLES_ENABLE_CXX=ON - - name: Build - # Build your program with the given configuration + - name: Build Static run: cmake --build ${{github.workspace}}/build_static - - name: Test + - name: Test Static working-directory: ${{github.workspace}}/build_static - # Execute tests defined by the CMake configuration. - # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail run: ctest -C ${{env.BUILD_TYPE}} + - name: Configure CMake (Static + MPI) + run: cmake -G "Ninja" -B ${{github.workspace}}/build_static_mpi -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=icx-cl -DCMAKE_CXX_COMPILER=icx-cl -DCMAKE_Fortran_COMPILER=ifx -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_FORTRAN_MODULE_INTERFACE=ON -DSUNDIALS_BUILD_WITH_PROFILING=ON -DSUNDIALS_TEST_UNITTESTS=OFF -DEXAMPLES_ENABLE_CXX=ON -DENABLE_MPI=ON -DMPI_C_COMPILER=mpicc -DMPI_CXX_COMPILER=mpicxx -DMPI_Fortran_COMPILER=mpif90 + + - name: Build Static + MPI + run: cmake --build ${{github.workspace}}/build_static_mpi + + - name: Test Static + MPI + working-directory: ${{github.workspace}}/build_static_mpi + run: ctest -C ${{env.BUILD_TYPE}} diff --git a/.github/workflows/windows-latest.yml b/.github/workflows/windows-latest-msvc.yml similarity index 100% rename from .github/workflows/windows-latest.yml rename to .github/workflows/windows-latest-msvc.yml