rm lapacke test; too painful to get it to run; fixes #137

This commit is contained in:
Radovan Bast 2015-11-04 19:38:57 +01:00
parent e17c541b07
commit b64341684a
4 changed files with 0 additions and 83 deletions

View File

@ -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

View File

@ -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})

View File

@ -1,47 +0,0 @@
#include <stdio.h>
#include <stdlib.h>
#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;
}

View File

@ -144,12 +144,6 @@ def test_cxx_cblas():
configure_build_and_exe('cxx_cblas', 'python setup --cxx=g++ --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_linux
@skip_on_windows @skip_on_windows
def test_cxx_accelerate(): def test_cxx_accelerate():