Skip to content

Commit 73a7be3

Browse files
author
Joan Massich
committed
use FindBLAS from eigen
1 parent b0c0417 commit 73a7be3

File tree

3 files changed

+1789
-23
lines changed

3 files changed

+1789
-23
lines changed

CMakeLists.txt

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,11 @@ set (CMakeHelloWorld_VERSION_MAJOR 1)
66
set (CMakeHelloWorld_VERSION_MINOR 0)
77

88
# Find the BLAS stuff
9+
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
910
find_package(BLAS REQUIRED)
1011

1112
message(STATUS "BLAS Libraries: ${BLAS_LIBRARIES}")
1213

13-
# find_path(BLAS_INCLUDE_DIRS NAMES cblas.h)
14-
# message(STATUS "BLAS Include: ${BLAS_INCLUDE_DIRS}")
15-
# include_directories(${BLAS_INCLUDE_DIRS})
16-
17-
set(BLA_DEFINITIONS)
18-
if (BLA_VENDOR MATCHES Intel)
19-
if ("$ENV{MKLROOT}" STREQUAL "")
20-
message(FATAL_ERROR "MKLROOT is not set. Please source the Intel MKL mklvars.sh file.")
21-
endif()
22-
find_path(MKL_INCLUDE_DIRS NAMES mkl.h
23-
PATHS $ENV{MKLROOT}/include/)
24-
message(STATUS "MKL Include: ${MKL_INCLUDE_DIRS}")
25-
include_directories(${MKL_INCLUDE_DIRS})
26-
set(BLA_DEFINITIONS USE_MKL)
27-
elseif (BLA_VENDOR MATCHES ATLAS)
28-
find_library(CBLAS_LIB NAMES cblas)
29-
set(BLAS_LIBRARIES "${BLAS_LIBRARIES};${CBLAS_LIB}")
30-
endif()
31-
32-
# include_directories(SYSTEM
33-
# C:\\nuget_openblas\\OpenBLAS.0.2.14.1\\lib\\native\\include\\
34-
# C:\\OpenBLAS.0.2.14.1\\lib\\native\\include\\)
35-
3614
#include the subdirectory containing our libs
3715
add_subdirectory(Hello)
3816
include_directories(Hello)

0 commit comments

Comments
 (0)