Skip to content
Snippets Groups Projects
Commit 113b750b authored by Serban Maerean's avatar Serban Maerean Committed by Peter Scheibel
Browse files

Update compile flags for netlib-lapack when building with the XL compiler. (#9318)

We need to use -O3 -qstrict -qnohot. Modified ibm-xl.patch and netlib-lapack
package file.
parent 013d4ad6
No related branches found
No related tags found
No related merge requests found
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -62,7 +62,7 @@
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fp-model strict")
endif()
if("${CMAKE_Fortran_COMPILER}" MATCHES "xlf")
- set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -qnosave -qstrict=none")
+ set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -qnosave -qstrict")
endif()
# Delete libmtsk in linking sequence for Sun/Oracle Fortran Compiler.
# This library is not present in the Sun package SolarisStudio12.3-linux-x86-bin
--- a/CMAKE/CheckLAPACKCompilerFlags.cmake
+++ b/CMAKE/CheckLAPACKCompilerFlags.cmake
@@ -43,12 +43,6 @@
......
......@@ -178,7 +178,8 @@ def cmake_args(self):
# use F77 compiler if IBM XL
args.extend(['-DCMAKE_Fortran_COMPILER=' + self.compiler.f77,
'-DCMAKE_Fortran_FLAGS=' +
(' '.join(self.spec.compiler_flags['fflags']))])
(' '.join(self.spec.compiler_flags['fflags'])) +
" -O3 -qnohot"])
# deprecated routines are commonly needed by, for example, suitesparse
# Note that OpenBLAS spack is built with deprecated routines
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment