Skip to content

Commit ea74378

Browse files
SuiteSparsePolicy.cmake: document the change to SUITESPARSE_USE_FORTRAN
1 parent 00d9c08 commit ea74378

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

cmake_modules/SuiteSparsePolicy.cmake

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,21 @@
7272
# for your system.
7373
# Default: OFF
7474
#
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.
89+
#
7590
# SUITESPARSE_PKGFILEDIR: Directory where CMake Config and pkg-config files
7691
# will be installed. By default, CMake Config files will
7792
# be installed in the subfolder `cmake` of the directory

0 commit comments

Comments
 (0)