From b64341684ac3769e78b95b9ef765dacd9c77a9c0 Mon Sep 17 00:00:00 2001 From: Radovan Bast Date: Wed, 4 Nov 2015 19:38:57 +0100 Subject: [PATCH] rm lapacke test; too painful to get it to run; fixes #137 --- test/cxx_lapacke/cmake/autocmake.cfg | 16 ---------- test/cxx_lapacke/src/CMakeLists.txt | 14 --------- test/cxx_lapacke/src/example.cpp | 47 ---------------------------- test/test.py | 6 ---- 4 files changed, 83 deletions(-) delete mode 100644 test/cxx_lapacke/cmake/autocmake.cfg delete mode 100644 test/cxx_lapacke/src/CMakeLists.txt delete mode 100644 test/cxx_lapacke/src/example.cpp diff --git a/test/cxx_lapacke/cmake/autocmake.cfg b/test/cxx_lapacke/cmake/autocmake.cfg deleted file mode 100644 index f9b00ef..0000000 --- a/test/cxx_lapacke/cmake/autocmake.cfg +++ /dev/null @@ -1,16 +0,0 @@ -[project] -name: example -min_cmake_version: 2.8 - -[cxx] -source: ../../../modules/cxx.cmake - -[math] -source: ../../../modules/math/cblas.cmake - ../../../modules/math/lapacke.cmake - -[default_build_paths] -source: ../../../modules/default_build_paths.cmake - -[src] -source: ../../../modules/src.cmake diff --git a/test/cxx_lapacke/src/CMakeLists.txt b/test/cxx_lapacke/src/CMakeLists.txt deleted file mode 100644 index 5f8f3cd..0000000 --- a/test/cxx_lapacke/src/CMakeLists.txt +++ /dev/null @@ -1,14 +0,0 @@ -if(NOT CBLAS_FOUND) - message(FATAL_ERROR "CBLAS not found") -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}) diff --git a/test/cxx_lapacke/src/example.cpp b/test/cxx_lapacke/src/example.cpp deleted file mode 100644 index 851cab5..0000000 --- a/test/cxx_lapacke/src/example.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include -#include - -#include "cblas.h" -#include "lapacke.h" - -int main() -{ - const int n = 3; - - double a[n*n]; - double b[n]; - - a[0] = 2.00; - a[1] = 1.00; - a[2] = 3.00; - a[3] = 2.00; - a[4] = 6.00; - a[5] = 8.00; - a[6] = 6.00; - a[7] = 8.00; - a[8] = 18.00; - - b[0] = 1.00; - b[1] = 3.00; - b[2] = 5.00; - - int ierr; - int ipiv[n]; - - ierr = LAPACKE_dgesv(CblasColMajor, n, 1, a, n, ipiv, b, n); - if (ierr != 0) - { - fprintf(stderr, "\ndgesv failure with error %i\n", ierr); - } - - const double small = 1.0e-12; - - if (abs(b[0] + 0.50) <= small && - abs(b[1] - 0.25) <= small && - abs(b[2] - 0.25) <= small) - { - printf("PASSED"); - } - - return 0; -} diff --git a/test/test.py b/test/test.py index 11996e8..88af8b5 100644 --- a/test/test.py +++ b/test/test.py @@ -144,12 +144,6 @@ def test_cxx_cblas(): configure_build_and_exe('cxx_cblas', 'python setup --cxx=g++ --cblas') -@skip_on_osx -@skip_on_windows -def test_cxx_lapacke(): - configure_build_and_exe('cxx_lapacke', 'python setup --cxx=g++ --lapacke --cblas') - - @skip_on_linux @skip_on_windows def test_cxx_accelerate():