more work on lapacke test
This commit is contained in:
@ -5,6 +5,9 @@ min_cmake_version: 2.8
|
|||||||
[cxx]
|
[cxx]
|
||||||
source: ../../../modules/cxx.cmake
|
source: ../../../modules/cxx.cmake
|
||||||
|
|
||||||
|
[cblas]
|
||||||
|
source: ../../../modules/cblas.cmake
|
||||||
|
|
||||||
[lapacke]
|
[lapacke]
|
||||||
source: ../../../modules/lapacke.cmake
|
source: ../../../modules/lapacke.cmake
|
||||||
|
|
||||||
|
@ -1,7 +1,14 @@
|
|||||||
if(LAPACKE_FOUND)
|
if(NOT CBLAS_FOUND)
|
||||||
include_directories(${LAPACKE_INCLUDE_DIR})
|
message(FATAL_ERROR "CBLAS not found")
|
||||||
add_executable(example example.cpp)
|
|
||||||
target_link_libraries(example ${LAPACKE_LIBRARIES})
|
|
||||||
else()
|
|
||||||
message(FATAL_ERROR "LAPACKE library not found")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT LAPACKE_FOUND)
|
||||||
|
message(FATAL_ERROR "LAPACKE not found")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
include_directories(${CBLAS_INCLUDE_DIR})
|
||||||
|
include_directories(${LAPACKE_INCLUDE_DIR})
|
||||||
|
|
||||||
|
add_executable(example example.cpp)
|
||||||
|
|
||||||
|
target_link_libraries(example ${LAPACKE_LIBRARIES})
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include "cblas.h"
|
||||||
#include "lapacke.h"
|
#include "lapacke.h"
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
@ -165,7 +165,7 @@ def test_fc_lapack():
|
|||||||
|
|
||||||
|
|
||||||
def test_cxx_lapacke():
|
def test_cxx_lapacke():
|
||||||
configure_build_and_exe('cxx_lapacke', 'python setup.py --cxx=g++ --lapacke')
|
configure_build_and_exe('cxx_lapacke', 'python setup.py --cxx=g++ --lapacke --cblas')
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user