Skip to content

Commit fdf32d0

Browse files
Merge pull request #373 from GraphBLAS/with_GraphBLAS_v10
changes to cmake policy
2 parents 0d45227 + ea74378 commit fdf32d0

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

cmake_modules/SuiteSparsePolicy.cmake

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,22 @@
7070
# This will require SUITESPARSE_C_TO_FORTRAN to be
7171
# defined explicitly, if the defaults are not appropriate
7272
# for your system.
73-
# Default: ON
73+
# Default: OFF
74+
#
75+
# This setting was ON by default in SuiteSparse 7.10.0 and earlier.
76+
# Note that Fortran is now disabled by default, with the default setting
77+
# of SUITESPARSE_USE_FORTRAN changed from ON to OFF. If the icx compiler
78+
# and the Intel MKL BLAS are available but ifx is not, then loading the
79+
# GNU Fortran compiler causes the cmake FindBLAS to link the Intel MKL
80+
# against libgomp, but at the same time cmake links the application with
81+
# libiomp. Including two OpenMP libraries, libiomp and libgomp, in one
82+
# application can cause serious performance issues. To avoid this issue,
83+
# SUITESPARSE_USE_FORTRAN has been set to OFF. This has little impact on
84+
# SuiteSparse (it disables the AMD Fortran routines, and removes the
85+
# Fortran interface to UMFPACK). If you wish to use those features,
86+
# re-enable the SUITESPARSE_USE_FORTRAN, but be sure to use either gcc
87+
# and gfortran together, or icx and ifx together. Do not mix-and-match
88+
# the compilers.
7489
#
7590
# SUITESPARSE_PKGFILEDIR: Directory where CMake Config and pkg-config files
7691
# will be installed. By default, CMake Config files will
@@ -286,7 +301,7 @@ endif ( )
286301
#-------------------------------------------------------------------------------
287302

288303
include ( CheckLanguage )
289-
option ( SUITESPARSE_USE_FORTRAN "ON (default): use Fortran. OFF: do not use Fortran" ON )
304+
option ( SUITESPARSE_USE_FORTRAN "ON: use Fortran. OFF (default): do not use Fortran" OFF )
290305
if ( SUITESPARSE_USE_FORTRAN )
291306
check_language ( Fortran )
292307
if ( CMAKE_Fortran_COMPILER )

0 commit comments

Comments
 (0)