# --------------------------------------------------
# LAPACKE
option(LAPACKE "Build LAPACKE" OFF)
+# LAPACKE has also the interface to some routines from tmglib,
+# if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE
+option(LAPACKE_WITH_TMG "Build LAPACKE with tmglib routines" OFF)
+if (LAPACKE_WITH_TMG)
+ option(LAPACKE "Build LAPACKE" ON)
+endif(LAPACKE_WITH_TMG)
+
if(LAPACKE)
add_subdirectory(lapacke)
-
endif(LAPACKE)
# --------------------------------------------------
CC = cc
CFLAGS = -O4
#
+# LAPACKE has also the interface to some routines from tmglib,
+# if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE
+#LAPACKE_WITH_TMG = Yes
+#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
#
CC = cc
CFLAGS =
#
+# LAPACKE has also the interface to some routines from tmglib,
+# if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE
+#LAPACKE_WITH_TMG = Yes
+#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
#
CC = cc
CFLAGS = -O3
#
+# LAPACKE has also the interface to some routines from tmglib,
+# if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE
+#LAPACKE_WITH_TMG = Yes
#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
CC = cc
CFLAGS = -O3
#
+# LAPACKE has also the interface to some routines from tmglib,
+# if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE
+#LAPACKE_WITH_TMG = Yes
#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
CC = xlc
CFLAGS = -O3 -qmaxmem=-1
#
+# LAPACKE has also the interface to some routines from tmglib,
+# if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE
+#LAPACKE_WITH_TMG = Yes
#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
CC = cc
CFLAGS = -O4
#
+# LAPACKE has also the interface to some routines from tmglib,
+# if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE
+#LAPACKE_WITH_TMG = Yes
+#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
#
CC = cc
CFLAGS = -O3
#
+# LAPACKE has also the interface to some routines from tmglib,
+# if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE
+#LAPACKE_WITH_TMG = Yes
+#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
#
CC = cc
CFLAGS = -O3
#
+# LAPACKE has also the interface to some routines from tmglib,
+# if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE
+#LAPACKE_WITH_TMG = Yes
+#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
#
CC = gcc
CFLAGS = -O3
#
+# LAPACKE has also the interface to some routines from tmglib,
+# if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE
+#LAPACKE_WITH_TMG = Yes
+#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
#
CC = gcc
CFLAGS = -g
#
+# LAPACKE has also the interface to some routines from tmglib,
+# if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE
+#LAPACKE_WITH_TMG = Yes
+#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
#
CC = icc
CFLAGS = -O3
#
+# LAPACKE has also the interface to some routines from tmglib,
+# if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE
+#LAPACKE_WITH_TMG = Yes
+#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
#
CC = pghpc
CFLAGS =
#
+# LAPACKE has also the interface to some routines from tmglib,
+# if LAPACKE_WITH_TMG is selected, we need to add those routines to LAPACKE
+#LAPACKE_WITH_TMG = Yes
+#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
#
append_subdir_files(UTILS_OBJ "utils")
if (USE_XBLAS)
- add_library(lapacke ${SRC_OBJ} ${MATGEN_OBJ} ${SRCX_OBJ} ${UTILS_OBJ})
- target_link_libraries(lapacke tmglib lapack ${BLAS_LIBRARIES} ${XBLAS_LIBRARY})
+ add_library(lapacke ${SRC_OBJ} ${SRCX_OBJ} ${UTILS_OBJ})
+ target_link_libraries(lapacke lapack ${BLAS_LIBRARIES} ${XBLAS_LIBRARY})
else (USE_XBLAS)
+ if (LAPACKE_WITH_TMG)
add_library(lapacke ${SRC_OBJ} ${MATGEN_OBJ} ${UTILS_OBJ})
target_link_libraries(lapacke tmglib lapack ${BLAS_LIBRARIES} )
+ else (LAPACKE_WITH_TMG)
+ add_library(lapacke ${SRC_OBJ} ${UTILS_OBJ})
+ target_link_libraries(lapacke lapack ${BLAS_LIBRARIES} )
+ endif(LAPACKE_WITH_TMG)
endif(USE_XBLAS)
lapack_install_library(lapacke)