rm lapacke test; too painful to get it to run; fixes #137
This commit is contained in:
parent
e17c541b07
commit
b64341684a
@ -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
|
@ -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})
|
@ -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;
|
||||
}
|
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user