File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 63
63
# Default to "mpif90" Fortran compiler if environment variable CAFC is empty or unset:
64
64
CAFC=${CAFC:-mpif90}
65
65
66
- # TODO -- improve the syntax of the "set" command below to accepted an unlimited number of arguments
66
+ # TODO -- refactor this script to use the bash3boilerplate use case
67
67
max_arguments=100
68
68
link_args="-fcoarray=lib -lcaf_mpi"
69
69
@@ -77,8 +77,10 @@ if [[ $1 == '-v' || $1 == '-V' || $1 == '--version' ]]; then
77
77
echo "BSD 3-Clause License. For more information about these matters, see"
78
78
echo "the file named LICENSE."
79
79
echo ""
80
- elif [[ $1 == '-w' || $1 == '--wrapping' || $1 == '-- wraps' ]]; then
80
+ elif [[ $1 == '-w' || $1 == '--wraps' ]]; then
81
81
echo "caf wraps CAFC=$CAFC"
82
+ elif [[ $1 == '-s' || $1 == '--show' ]]; then
83
+ $CAFC -show
82
84
elif [[ $1 == '-h' || $1 == '--help' ]]; then
83
85
# Print usage information
84
86
usage | less
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ elif [[ $1 == '-v' || $1 == '-V' || $1 == '--version' ]]; then
39
39
echo "the file named LICENSE."
40
40
echo ""
41
41
elif [[ $1 == '-w' || $1 == '--wraps' ]]; then
42
- mpirun -v
42
+ "${CAFRUN}" -v
43
43
elif [[ $1 == '-h' || $1 == '--help' ]]; then
44
44
usage
45
45
else
46
- mpirun "$@"
46
+ "${CAFRUN}" "$@"
47
47
fi
Original file line number Diff line number Diff line change 84
84
endif ()
85
85
86
86
if ( DEFINED ENV{FC} )
87
- file (APPEND "${compiler_wrapper} " "CAFC=$ENV{FC } \n " )
87
+ file (APPEND "${compiler_wrapper} " "CAFC=${MPI_Fortran_COMPILER } \n " )
88
88
endif ()
89
89
90
90
if ("${CMAKE_SYSTEM_NAME} " MATCHES "Linux" )
@@ -103,6 +103,7 @@ install(
103
103
file (READ ${CMAKE_CURRENT_SOURCE_DIR} /../extensions/cafrun-head CAFRUN_HEADER )
104
104
file (WRITE "${caf_launcher} " "${CAFRUN_HEADER} \n " )
105
105
file (APPEND "${caf_launcher} " "caf_version=${PROJECT_VERSION} \n " )
106
+ file (APPEND "${caf_launcher} " "CAFRUN=${MPIEXEC} \n " )
106
107
107
108
file (READ ${CMAKE_CURRENT_SOURCE_DIR} /../extensions/cafrun-foot FOOTER )
108
109
file (APPEND "${caf_launcher} " "${FOOTER} " )
You can’t perform that action at this time.
0 commit comments