File tree 4 files changed +82
-10
lines changed
4 files changed +82
-10
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ jobs:
10
10
11
11
env :
12
12
FC : gfortran
13
- GCC_V : 10
13
+ GCC_V : 11
14
14
15
15
steps :
16
16
- name : Checkout code
17
- uses : actions/checkout@v2
17
+ uses : actions/checkout@v3
18
18
19
19
- name : Install Dependencies
20
20
run : |
24
24
- name : Build and Test
25
25
run : |
26
26
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
27
31
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
32
32
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)
281
281
set ( MPI_ASSUME_NO_BUILTIN_MPI TRUE )
282
282
set ( MPI_CXX_SKIP_MPICXX TRUE )
283
283
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" )
286
286
287
+ message (STATUS "Looking in IMPI_LIB_DIR=${IMPI_LIB_DIR} " )
288
+ message (STATUS "Looking in IMPI_DLL_DIR=${IMPI_DLL_DIR} " )
287
289
find_library (IMPI_LIB
288
290
"impi.lib"
289
291
HINTS "${IMPI_LIB_DIR} "
292
+ PATH_SUFFIXES "${IMPI_BUILD} "
290
293
DOC "Location of the Intel MPI impi.lib file"
291
294
REQUIRED
292
295
NO_DEFAULT_PATH)
293
296
294
297
find_file (IMPI_DLL
295
298
"impi.dll"
296
299
HINTS "${IMPI_DLL_DIR} "
300
+ PATH_SUFFIXES "${IMPI_BUILD} "
297
301
DOC "Location of the Intel MPI impi.dll file"
298
302
REQUIRED
299
303
NO_DEFAULT_PATH)
Original file line number Diff line number Diff line change @@ -150,11 +150,12 @@ cd "${current_dir}" || exit 5
150
150
151
151
# Error tracing
152
152
# requires `set -o errtrace`
153
+ # shellcheck disable=SC2317
153
154
__caf_err_report () {
154
155
local error_code
155
- error_code=${?}
156
+ error_code=" ${?} "
156
157
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} "
158
159
}
159
160
# Always provide an error backtrace
160
161
trap ' __caf_err_report "${FUNCNAME:-.}" ${LINENO}' ERR
You can’t perform that action at this time.
0 commit comments