File tree Expand file tree Collapse file tree 4 files changed +82
-10
lines changed Expand file tree Collapse file tree 4 files changed +82
-10
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ jobs:
1010
1111 env :
1212 FC : gfortran
13- GCC_V : 10
13+ GCC_V : 11
1414
1515 steps :
1616 - name : Checkout code
17- uses : actions/checkout@v2
17+ uses : actions/checkout@v3
1818
1919 - name : Install Dependencies
2020 run : |
2424 - name : Build and Test
2525 run : |
2626 mkdir build
27+ cmake -S . -B build -Wdev -DCMAKE_INSTALL_PREFIX:PATH="${HOME}/OpenCoarrays" -DCMAKE_BUILD_TYPE:STRING="Debug" ..
28+ cmake --build build -j $(nproc)
29+ cmake --build build -t install -j $(nproc) || echo "installation failed"
30+ ctest --test-dir build --output-on-failure --schedule-random --repeat-until-fail 1 --timeout 200
2731 cd build
28- cmake -Wdev -DCMAKE_INSTALL_PREFIX:PATH="${HOME}/OpenCoarrays" -DCMAKE_BUILD_TYPE:STRING="Debug" ..
29- make -j $(nproc)
30- ctest --output-on-failure --schedule-random --repeat-until-fail 1 --timeout 200
31- make install
3232 make uninstall
Original file line number Diff line number Diff line change 1+ name : Windows CI
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ Build :
7+ runs-on : windows-latest
8+ strategy :
9+ fail-fast : true
10+ defaults :
11+ run :
12+ shell : msys2 {0}
13+
14+ env :
15+ FC : gfortran
16+ CC : gcc
17+
18+ steps :
19+ - name : Checkout code
20+ uses : actions/checkout@v3
21+
22+ - name : Install Dependencies
23+ uses : msys2/setup-msys2@v2
24+ with :
25+ update : true
26+ path-type : inherit
27+ install : >-
28+ mingw-w64-x86_64-gcc-fortran mingw-w64-x86_64-gcc
29+
30+ - name : setup-mpi
31+ id : setup-mpi
32+ uses : mpi4py/setup-mpi@v1
33+ with :
34+ mpi : intelmpi
35+
36+ - name : MPI info
37+ run : |
38+ echo "${{ steps.setup-mpi.outputs.mpi }}"
39+ set -o verbose
40+ # mpiexec -help
41+ type mpiexec
42+ ls "${I_MPI_ROOT}/bin"
43+ ls "${I_MPI_ROOT}"
44+ ls "${I_MPI_ROOT}/lib"
45+ mpifc.bat -show
46+ mpicc.bat -show
47+ mpifc.bat -version || echo "ifort not installed"
48+ mpicc.bat -version || echo "icc not installed"
49+ set +o verbose
50+
51+ - name : Build and Test
52+ run : |
53+ mkdir build
54+ cmake -Wdev -G "Unix Makefiles" -S . -B build -DCMAKE_INSTALL_PREFIX="${HOME}/apps/OpenCoarrays" -DCMAKE_BUILD_TYPE:STRING="Debug"
55+ cmake --build build -j
56+ cmake --build build -t install -j || echo "installation failed"
57+ ctest --test-dir build --output-on-failure --schedule-random --repeat-until-fail 1 --timeout 200
58+ echo "${HOME}/apps/OpenCoarrays/bin" >> $GITHUB_PATH
59+ export PATH="${HOME}/apps/OpenCoarrays/bin:${PATH}"
60+ which caf || true
61+ which cafrun || true
62+ cafrun --show || true
63+ caf --show || true
64+ cafrun --version || true
65+ caf --version || true
66+ cd build
67+ make uninstall
Original file line number Diff line number Diff line change @@ -281,19 +281,23 @@ if(WIN32) # Only support building with GCC & GFortran using Intel MPI (OneAPI)
281281 set ( MPI_ASSUME_NO_BUILTIN_MPI TRUE )
282282 set ( MPI_CXX_SKIP_MPICXX TRUE )
283283 cmake_path(SET MPI_ROOT NORMALIZE "$ENV{I_MPI_ROOT} " )
284- set (IMPI_LIB_DIR "${MPI_ROOT} /lib/ ${IMPI_BUILD} " )
285- set (IMPI_DLL_DIR "${MPI_ROOT} /bin/ ${IMPI_BUILD} " )
284+ set (IMPI_LIB_DIR "${MPI_ROOT} /lib" )
285+ set (IMPI_DLL_DIR "${MPI_ROOT} /bin" )
286286
287+ message (STATUS "Looking in IMPI_LIB_DIR=${IMPI_LIB_DIR} " )
288+ message (STATUS "Looking in IMPI_DLL_DIR=${IMPI_DLL_DIR} " )
287289 find_library (IMPI_LIB
288290 "impi.lib"
289291 HINTS "${IMPI_LIB_DIR} "
292+ PATH_SUFFIXES "${IMPI_BUILD} "
290293 DOC "Location of the Intel MPI impi.lib file"
291294 REQUIRED
292295 NO_DEFAULT_PATH)
293296
294297 find_file (IMPI_DLL
295298 "impi.dll"
296299 HINTS "${IMPI_DLL_DIR} "
300+ PATH_SUFFIXES "${IMPI_BUILD} "
297301 DOC "Location of the Intel MPI impi.dll file"
298302 REQUIRED
299303 NO_DEFAULT_PATH)
Original file line number Diff line number Diff line change @@ -150,11 +150,12 @@ cd "${current_dir}" || exit 5
150150
151151# Error tracing
152152# requires `set -o errtrace`
153+ # shellcheck disable=SC2317
153154__caf_err_report () {
154155 local error_code
155- error_code=${?}
156+ error_code=" ${?} "
156157 echo " Error in ${__file} in function ${1} on line ${2} . Please report this error at http://bit.ly/OpenCoarrays-new-issue" >&2
157- exit ${error_code}
158+ exit " ${error_code} "
158159}
159160# Always provide an error backtrace
160161trap ' __caf_err_report "${FUNCNAME:-.}" ${LINENO}' ERR
You can’t perform that action at this time.
0 commit comments