Skip to content

Commit 09e7100

Browse files
committed
Merge pull request #181 from TimmyLiu/develop
find libblas.so correctly. use libblas.so for testing by default instead of libacml.so
2 parents f888be0 + 2d67b2e commit 09e7100

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ addons:
4343
# boost-latest contains boost v1.55
4444
- boost-latest
4545
packages:
46+
- gfortran
4647
# g++-4.8 is minimum version considered to be the first good c++11 gnu compiler
4748
# - g++-4.8
4849
# - clang-3.6

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ message( STATUS "You have confirmed OpenCL ${OPENCL_VERSION} is supported in you
8282
if ( APPLE )
8383
set(CORR_TEST_WITH_ACML OFF CACHE BOOL "Use ACML library in correctness tests")
8484
else ( )
85-
message(STATUS "CORR_TEST_WITH_ACML set to ON")
86-
set(CORR_TEST_WITH_ACML ON CACHE BOOL "Use ACML library in correctness tests")
85+
message(STATUS "CORR_TEST_WITH_ACML set to OFF. Try link with libblas.so")
86+
set(CORR_TEST_WITH_ACML OFF CACHE BOOL "Use ACML library in correctness tests")
8787
endif( )
8888

8989
if( CMAKE_GENERATOR MATCHES "NMake" )

src/FindNetlib.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ endif( )
7474

7575
# The library name available from Netlib has different names for 64bit and 32bit libs
7676
if( LIB64 )
77-
set( Netlib_BLAS_LIBNAME libblas )
77+
set( Netlib_BLAS_LIBNAME blas )
7878
# set( Netlib_BLAS_LIBNAME BLAS ) Even though the download is named BLAS, the linker expects the .dll to be called libblas.dll
7979
else( )
80-
set( Netlib_BLAS_LIBNAME libblas )
80+
set( Netlib_BLAS_LIBNAME blas )
8181
endif( )
8282

8383
list( FIND Netlib_FIND_COMPONENTS BLAS contains_BLAS )
@@ -91,6 +91,7 @@ if( NOT contains_BLAS EQUAL -1 )
9191
PATHS
9292
/usr/lib
9393
/usr/local/lib
94+
/usr/lib/libblas
9495
DOC "Netlib dynamic library path"
9596
PATH_SUFFIXES lib
9697
)

0 commit comments

Comments
 (0)