-
Notifications
You must be signed in to change notification settings - Fork 65
/
CMakeLists.txt.orig
472 lines (405 loc) · 16.1 KB
/
CMakeLists.txt.orig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
######################################################################
#
# CMakeLists.txt for SUPERLU_DIST
#
######################################################################
# Required version
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
# Project version numbers
#project(SuperLU_DIST C CXX CUDA)
project(SuperLU_DIST C CXX)
set(VERSION_MAJOR "7")
set(VERSION_MINOR "0")
set(VERSION_BugFix "0")
set(PROJECT_VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_BugFix})
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
# Set up options
option(enable_doc "Build doxygen documentation" OFF)
option(enable_double "Enable double precision library" ON)
option(enable_complex16 "Enable complex16 precision library" OFF)
option(enable_tests "Build tests" ON)
option(enable_examples "Build examples" ON)
#-- BLAS
option(TPL_ENABLE_INTERNAL_BLASLIB "Build the CBLAS library" ${enable_blaslib_DEFAULT})
option(TPL_BLAS_LIBRARIES "List of absolute paths to blas libraries [].")
#-- ParMETIS
option(TPL_ENABLE_PARMETISLIB "Build the ParMETIS library" ON)
option(TPL_PARMETIS_LIBRARIES "List of absolute paths to ParMETIS link libraries [].")
option(TPL_PARMETIS_INCLUDE_DIRS "List of absolute paths to ParMETIS include directories [].")
#-- LAPACK
option(TPL_ENABLE_LAPACKLIB "Enable LAPACK library" OFF)
option(TPL_LAPACK_LIBRARIES "List of absolute paths to LAPACK libraries [].")
#-- CombBLAS
option(TPL_ENABLE_COMBBLASLIB "Build the CombBLAS library" OFF)
option(TPL_COMBBLAS_LIBRARIES "List of absolute paths to CombBLAS link libraries [].")
option(TPL_COMBBLAS_INCLUDE_DIRS "List of absolute paths to CombBLAS include directories [].")
#-- CUDA
option(TPL_ENABLE_CUDALIB "Enable the CUDA libraries" OFF)
######################################################################
#
# IDEAS: xSDK standards module
#MESSAGE("\nProcess XSDK defaults ...")
# SET(USE_XSDK_DEFAULTS_DEFAULT TRUE) # Set to false if desired
#INCLUDE("cmake/XSDKDefaults.cmake")
######################################################################
include(CTest)
include(CheckLanguage)
######################################################################
#
# Usual initialization stuff
#
######################################################################
set(CMAKE_CXX_STANDARD 11)
#set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
#message("!!!! top: cxx_implicit='${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES}'")
if (XSDK_ENABLE_Fortran)
enable_language (Fortran)
set(NOFORTRAN FALSE)
endif()
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) ## ????
set(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
#---- For shared library
# use, i.e. don't skip the full RPATH for the build tree
SET(CMAKE_SKIP_BUILD_RPATH FALSE)
# when building, don't use the install RPATH already
# (but later on when installing)
SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
# the RPATH to be used when installing
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
# add the automatically determined parts of the RPATH
# which point to directories outside the build tree to the install RPATH
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
#----
SET(BUILD_STATIC_LIBS TRUE CACHE BOOL "Include static libs when building shared")
if (BUILD_SHARED_LIBS)
message("-- SuperLU_DIST will be built as a shared library.")
# set the position independent code property on all targets, so that
# -fPIC is added in compiler flag.
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(PROJECT_NAME_LIB_EXPORT libsuperlu_dist.so)
SET(CMAKE_EXE_LINKER_FLAGS
"${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath,${CMAKE_INSTALL_PREFIX}/SRC")
if (BUILD_STATIC_LIBS)
message("-- SuperLU_DIST will also be built as a static library.")
endif()
set(SHARED_C_FLAGS_EXPORT ${CMAKE_SHARED_LIBRARY_C_FLAGS})
else()
message("-- SuperLU_DIST will be built as a static library.")
set(PROJECT_NAME_LIB_EXPORT libsuperlu_dist.a)
endif()
set(SUPERLU_VERSION "${PROJECT_VERSION}")
set(SUPERLU_REV "${PROJECT_REV}")
# The XSDK standard does not allow using internally built BLAS
if (USE_XSDK_DEFAULTS)
set(enable_blaslib_DEFAULT OFF)
else()
set(enable_blaslib_DEFAULT ON)
endif()
if (NOT CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX /usr/local)
endif()
if(NOT MSVC)
include(GNUInstallDirs)
set(default_install_inc_dir ${CMAKE_INSTALL_INCLUDEDIR})
set(default_install_lib_dir ${CMAKE_INSTALL_LIBDIR})
set(default_install_bin_dir ${CMAKE_INSTALL_BINDIR})
else() # for Windows
set(default_install_inc_dir "include")
set(default_install_lib_dir "lib")
set(default_install_bin_dir "bin")
endif()
set(INSTALL_INC_DIR "${default_install_inc_dir}" CACHE STRING "The folder where headers will be installed.")
set(INSTALL_LIB_DIR "${default_install_lib_dir}" CACHE STRING "The folder where libraries will be installed.")
set(INSTALL_BIN_DIR "${default_install_bin_dir}" CACHE STRING "The folder where runtime files will be installed.")
# Set up required compiler defines and options.
## get_directory_property( DirDefs COMPILE_DEFINITIONS )
if(XSDK_INDEX_SIZE EQUAL 64)
message("-- Using 64 bit integer for index size.")
endif()
set(CMAKE_C_FLAGS_RELEASE "-O3 -g" CACHE STRING "")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -g" CACHE STRING "")
set(CMAKE_Fortran_FLAGS_RELEASE "-O3 -g" CACHE STRING "")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0")
######################################################################
#
# Find packages
#
######################################################################
#
#--------------------- MPI ---------------------
find_package(MPI REQUIRED)
if(MPI_C_FOUND)
set(CMAKE_C_FLAGS "${MPI_C_COMPILE_FLAGS} ${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${MPI_CXX_COMPILE_FLAGS} ${CMAKE_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${MPI_C_LINK_FLAGS}" )
endif()
if (XSDK_ENABLE_Fortran)
if(MPI_Fortran_FOUND)
set(CMAKE_Fortran_FLAGS "${MPI_Fortran_COMPILE_FLAGS} ${CMAKE_Fortran_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${MPI_Fortran_LINK_FLAGS}")
include_directories(${MPI_Fortran_INCLUDE_PATH})
endif()
endif()
#---- CUDA libraries
if (TPL_ENABLE_CUDALIB) ## want to use cuda
check_language(CUDA)
if(CMAKE_CUDA_COMPILER)
message("-- Enabled support for CUDA.")
enable_language(CUDA)
find_package(CUDA REQUIRED)
if (CUDA_FOUND)
if (NOT CMAKE_CUDA_FLAGS)
cuda_select_nvcc_arch_flags(CUDA_ARCH_FLAGS Auto)
endif()
set(HAVE_CUDA TRUE)
set(CMAKE_CUDA_FLAGS_RELEASE "-O3 --expt-relaxed-constexpr -DNDEBUG" CACHE STRING "")
set(CMAKE_CUDA_FLAGS_DDEBUG "-O0 --expt-relaxed-constexpr -DDEBUG -g" CACHE STRING "")
endif()
# find_package(CUB REQUIRED)
find_package(CUDAToolkit REQUIRED)
set(CUDA_LIBRARIES "${CUDAToolkit_LIBRARY_ROOT}/lib64/libcudart.so")
set(CUDA_CUBLAS_LIBRARIES "${CUDAToolkit_LIBRARY_ROOT}/lib64/libcublas.so")
# # The following make.inc exporting does not work
# set(CUDA_LIB CUDA::cudart CUDA::cublas CUDA::cusolver)
# # fix up CUDA library names
# string (REPLACE ";" " " CUDA_LIB_STR "${CUDA_LIB}")
# set(CUDA_LIB_EXPORT ${CUDA_LIB_STR})
# set(HAVE_CUDA TRUE)
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHAVE_CUDA")
# set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -DHAVE_CUDA")
else()
message("-- CUDA libraries not found.")
endif()
endif()
#--------------------- OpenMP ---------------------
if (NOT DEFINED enable_openmp)
set(enable_openmp TRUE)
endif ()
if (enable_openmp)
find_package(OpenMP)
## include(FindOpenMP) # Strumpack uses this
if(OPENMP_FOUND)
set(CMAKE_C_FLAGS "${OpenMP_C_FLAGS} ${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${OpenMP_CXX_FLAGS} ${CMAKE_CXX_FLAGS}")
# On edison, OpenMP_EXE_LINKER_FLAGS is empty
# set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_C_FLAGS}")
message("-- OpenMP_EXE_LINKER_FLAGS='${OpenMP_EXE_LINKER_FLAGS}'")
message("-- CMAKE_EXE_LINKER_FLAGS='${CMAKE_EXE_LINKER_FLAGS}'")
endif()
endif()
#--------------------- BLAS ---------------------
if(NOT TPL_ENABLE_INTERNAL_BLASLIB)
# set(TPL_BLAS_LIBRARIES "" CACHE FILEPATH
# "Override of list of absolute path to libs for BLAS.")
if(TPL_BLAS_LIBRARIES)
set(BLAS_FOUND TRUE)
else()
find_package(BLAS)
if(BLAS_FOUND)
set(TPL_BLAS_LIBRARIES "${BLAS_LIBRARIES}" CACHE FILEPATH
"Set from FindBLAS.cmake BLAS_LIBRARIES." FORCE)
endif()
endif()
endif()
if(BLAS_FOUND)
message("-- Using TPL_BLAS_LIBRARIES='${TPL_BLAS_LIBRARIES}'")
set(CMAKE_C_FLAGS "-DUSE_VENDOR_BLAS ${CMAKE_C_FLAGS}")
set(CMAKE_CUDA_FLAGS "-DUSE_VENDOR_BLAS ${CMAKE_CUDA_FLAGS}")
set(BLAS_LIB ${TPL_BLAS_LIBRARIES})
# fix up BLAS library name
string (REPLACE ";" " " BLAS_LIB_STR "${BLAS_LIB}")
set(BLAS_LIB_EXPORT ${BLAS_LIB_STR})
else()
message("-- Did not find or specify BLAS, so configure to build internal CBLAS ...")
add_subdirectory(CBLAS)
set(BLAS_LIB blas)
if (BUILD_SHARED_LIBS) # export to be referenced by downstream makefile
set(BLAS_LIB_EXPORT ${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR}/libblas.so)
else()
set(BLAS_LIB_EXPORT ${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR}/libblas.a)
endif()
endif()
#--------------------- LAPACK ---------------------
if(TPL_ENABLE_LAPACKLIB) ## want to use LAPACK
if(TPL_LAPACK_LIBRARIES)
set(LAPACK_FOUND TRUE)
else()
find_package(LAPACK)
if(LAPACK_FOUND)
set(TPL_LAPACK_LIBRARIES "${LAPACK_LIBRARIES}" CACHE FILEPATH
"Set from FindLAPACK.cmake LAPACK_LIBRARIES." FORCE)
endif()
endif()
else() ## not to use LAPACK
set(LAPACK_FOUND FALSE)
set(SLU_HAVE_LAPACK FALSE)
endif()
if(LAPACK_FOUND)
message("-- Using TPL_LAPACK_LIBRARIES='${TPL_LAPACK_LIBRARIES}'")
set(LAPACK_LIB ${TPL_LAPACK_LIBRARIES})
# fix up LAPACK library name
string (REPLACE ";" " " LAPACK_LIB_STR "${LAPACK_LIB}")
set(LAPACK_LIB_EXPORT ${LAPACK_LIB_STR})
set(SLU_HAVE_LAPACK TRUE)
else()
message("-- Will not link with LAPACK.")
endif()
#--------------------- ParMETIS ---------------------
if (TPL_ENABLE_PARMETISLIB) ## want to use parmetis
if (NOT TPL_PARMETIS_LIBRARIES)
message(FATAL_ERROR "TPL_PARMETIS_LIBRARIES option should be set for PARMETIS support to be enabled.")
endif()
if (NOT TPL_PARMETIS_INCLUDE_DIRS)
message(FATAL_ERROR "TPL_PARMETIS_INCLUDE_DIRS option be set for PARMETIS support to be enabled.")
endif()
foreach(dir ${TPL_PARMETIS_INCLUDE_DIRS})
if (NOT EXISTS ${dir})
message(FATAL_ERROR "PARMETIS include directory not found: ${dir}")
endif()
set(CMAKE_C_FLAGS "-I${dir} ${CMAKE_C_FLAGS}")
endforeach()
message("-- Enabled support for PARMETIS.")
set(PARMETIS_FOUND TRUE)
set(PARMETIS_LIB ${TPL_PARMETIS_LIBRARIES})
# fix up PARMETIS library names
string (REPLACE ";" " " PARMETIS_LIB_STR "${PARMETIS_LIB}")
set(PARMETIS_LIB_EXPORT ${PARMETIS_LIB_STR})
else()
message("-- Will not link with ParMETIS.")
endif()
if(TPL_ENABLE_PARMETISLIB AND NOT PARMETIS_FOUND)
find_package(ParMETIS)
if(PARMETIS_FOUND)
set(PARMETIS_LIB ParMETIS::ParMETIS)
set(TPL_PARMETIS_INCLUDE_DIRS "")
endif()
endif()
if(PARMETIS_FOUND)
set(HAVE_PARMETIS TRUE)
endif()
#---------------------- Additional C linker library ---------
SET(_c_libs ${CMAKE_C_IMPLICIT_LINK_LIBRARIES})
FOREACH(_lib ${_c_libs})
set(EXTRA_LIB "-l${_lib} ${EXTRA_LIB}")
ENDFOREACH()
string (REPLACE ";" " " EXTRA_LIB_STR "${EXTRA_LIB}")
set(EXTRA_LIB_EXPORT ${EXTRA_LIB_STR})
message("-- EXTRA_LIB_EXPORT='${EXTRA_LIB_EXPORT}'")
#---------------------- Additional Fortran linker library ---------
if (XSDK_ENABLE_Fortran)
SET(_f_libs ${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES})
FOREACH(_lib ${_f_libs})
set(EXTRA_FLIB "${EXTRA_FLIB} -l${_lib}")
ENDFOREACH()
string (REPLACE ";" " " EXTRA_FLIB_STR "${EXTRA_FLIB}")
set(EXTRA_FLIB_EXPORT ${EXTRA_FLIB_STR})
message("-- EXTRA_FLIB_EXPORT='${EXTRA_FLIB_EXPORT}'")
if (BUILD_SHARED_LIBS)
message("-- superlu_dist_fortran will be built as a dynamic library.")
set(PROJECT_NAME_LIB_FORTRAN libsuperlu_dist_fortran.so)
SET(CMAKE_EXE_LINKER_FLAGS
"${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath,${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
else()
message("-- superlu_dist_fortranwill be built as a static library.")
set(PROJECT_NAME_LIB_FORTRAN libsuperlu_dist_fortran.a)
endif()
endif()
#--------------------- CombBLAS ---------------------
if (TPL_ENABLE_COMBBLASLIB) ## want to use CombBLAS
if (NOT TPL_COMBBLAS_LIBRARIES)
message(FATAL_ERROR "TPL_COMBBLAS_LIBRARIES option should be set for COMBBLAS support to be enabled.")
endif()
if (NOT TPL_COMBBLAS_INCLUDE_DIRS)
message(FATAL_ERROR "TPL_COMBBLAS_INCLUDE_DIRS option be set for COMBBLAS support to be enabled.")
endif()
foreach(dir ${TPL_COMBBLAS_INCLUDE_DIRS})
if (NOT EXISTS ${dir})
message(FATAL_ERROR "COMBBLAS include directory not found: ${dir}")
endif()
set(CMAKE_CXX_FLAGS "-I${dir} ${CMAKE_CXX_FLAGS}")
endforeach()
message("-- Enabled support for COMBBLAS")
set(COMBBLAS_FOUND TRUE)
set(COMBBLAS_LIB ${TPL_COMBBLAS_LIBRARIES})
# fix up COMBBLAS library names
string (REPLACE ";" " " COMBBLAS_LIB_STR "${COMBBLAS_LIB}")
set(COMBBLAS_LIB_EXPORT ${COMBBLAS_LIB_STR})
else()
message("-- Will not link with CombBLAS.")
endif()
if(COMBBLAS_FOUND)
set(HAVE_COMBBLAS TRUE)
set(LOADER $(CXX))
else()
set(LOADER $(CC))
endif()
######################################################################
#
# Fortran-C name mangling
#
######################################################################
if (XSDK_ENABLE_Fortran)
include(FortranCInterface)
FortranCInterface_HEADER(${SuperLU_DIST_SOURCE_DIR}/SRC/superlu_FortranCInterface.h
MACRO_NAMESPACE "FC_")
FortranCInterface_VERIFY(CXX)
SET(MPI_Fortran_LINK_FLAGS "${CMAKE_EXE_LINKER_FLAGS}")
endif()
######################################################################
#
# Include directories
#
######################################################################
include_directories(${CMAKE_BINARY_DIR}/SRC) # For superlu_dist_config.h
include_directories(SRC)
# include_directories(${CMAKE_SOURCE_DIR}/SRC)
if (TPL_PARMETIS_INCLUDE_DIRS)
include_directories(${TPL_PARMETIS_INCLUDE_DIRS}) ## parmetis
endif ()
if (TPL_COMBBLAS_INCLUDE_DIRS)
include_directories(${TPL_COMBBLAS_INCLUDE_DIRS}) ## CombBLAS
endif ()
include_directories(${MPI_C_INCLUDE_PATH})
######################################################################
#
# Add subdirectories
#
######################################################################
add_subdirectory(SRC)
if(enable_doc)
message(FATAL_ERROR "Documentation build requested but not implemented.")
#implement doxygen
endif()
if(enable_tests)
enable_testing()
add_subdirectory(TEST)
endif()
if(enable_examples)
enable_testing()
add_subdirectory(EXAMPLE)
endif()
if (XSDK_ENABLE_Fortran)
add_subdirectory(FORTRAN)
endif()
# superlu_dist uses c++11. PUBLIC means that the other codes linking to it need c++11
#target_compile_features(SuperLU_DIST PUBLIC cxx_std_11)
# Generate various configure files with proper definitions
# configure_file(${CMAKE_SOURCE_DIR}/make.inc.in ${CMAKE_BINARY_DIR}/make.inc)
configure_file(${SuperLU_DIST_SOURCE_DIR}/make.inc.in ${SuperLU_DIST_SOURCE_DIR}/make.inc)
configure_file(${SuperLU_DIST_SOURCE_DIR}/SRC/superlu_dist_config.h.in ${SuperLU_DIST_BINARY_DIR}/SRC/superlu_dist_config.h)
configure_file(${SuperLU_DIST_SOURCE_DIR}/SRC/superlu_dist_config.h.in ${SuperLU_DIST_SOURCE_DIR}/SRC/superlu_dist_config.h)
# Following is to configure a file for FORTRAN code
configure_file(${SuperLU_DIST_SOURCE_DIR}/SRC/superlu_dist_config.h.in ${SuperLU_DIST_BINARY_DIR}/FORTRAN/superlu_dist_config.h)
# Add pkg-config support
if(IS_ABSOLUTE ${CMAKE_INSTALL_LIBDIR})
set(pkgconfig_libdir ${CMAKE_INSTALL_LIBDIR})
else()
set(pkgconfig_libdir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/superlu_dist.pc.in ${CMAKE_CURRENT_BINARY_DIR}/superlu_dist.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/superlu_dist.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
#message("MPI_Fortran_LINK_FLAGS '${MPI_Fortran_LINK_FLAGS}'")