File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 59
59
run : curl -L -O https://github.com/microsoft/Microsoft-MPI/releases/download/v10.1.1/msmpisetup.exe
60
60
61
61
- name : Install mpiexec.exe (-force needed to bypass GUI on headless)
62
- run : .\msmpisetup.exe -unattend -force
63
-
64
- - name : Assert file existence
65
- run : if (-not (Test-Path -Path "C:\Program Files\Microsoft MPI\Bin\mpiexec.exe" -PathType Leaf)) { exit 1 }
66
-
67
- - name : put MSMPI_BIN on PATH (where mpiexec is)
68
- run : echo "C:\Program Files\Microsoft MPI\Bin\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
62
+ run : .\msmpisetup.exe -unattend -force -verbose
69
63
70
64
- uses : actions/checkout@v4
71
65
Original file line number Diff line number Diff line change 1
1
function (test_mpi_launcher target test Nworker )
2
2
3
- if (NOT ( DEFINED MPIEXEC_EXECUTABLE AND DEFINED MPIEXEC_NUMPROC_FLAG ) )
3
+ if (NOT MPIEXEC_EXECUTABLE OR NOT MPIEXEC_NUMPROC_FLAG )
4
4
message (FATAL_ERROR "MPIEXEC_EXECUTABLE and MPIEXEC_NUMPROC_FLAG must be defined to use test_mpi_launcher" )
5
5
endif ()
6
6
Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ target_link_libraries(mpi_pass PRIVATE MPI::MPI_Fortran)
38
38
39
39
add_test (NAME MPIpass COMMAND mpi_pass )
40
40
test_mpi_launcher (mpi_pass MPIpass 2 )
41
- set_property (TEST MPIpass PROPERTY FIXTURES_REQUIRED mpi_fxt )
42
41
43
42
set_tests_properties (MPIpass PROPERTIES
44
43
LABELS "Fortran"
45
44
DISABLED $< VERSION_LESS:${MPIEXEC_MAX_NUMPROCS} ,2>
45
+ FIXTURES_REQUIRED mpi_fxt
46
46
)
47
47
48
48
You can’t perform that action at this time.
0 commit comments