Changeset 67d200b in tol


Ignore:
Timestamp:
Jan 14, 2015, 7:49:09 AM (12 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
434fc17
Parents:
c07874d
Message:

incorporamos FindCLAPACK a la compilación basada en cmake, refs #1812, #1818

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6435 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • tol/CMakeLists.txt

    rc07874d r67d200b  
    9191endif( )
    9292
    93 # GSl configuration
     93# GSL configuration
    9494find_package( GSL REQUIRED )
    9595
    … …  
    100100endif( )
    101101
     102# CBLAS configuration
    102103find_package( CBLAS )
    103104if( CBLAS_FOUND )
    104105  set( HAVE_CBLAS_H 1 CACHE INTERNAL "" )
    105106  if( TRACE_COMPONENTS_FOUND )
     107    message( "CBLAS_INCLUDE_DIR = ${CBLAS_INCLUDE_DIR}" )
    106108    message( "CBLAS_LIBRARY = ${CBLAS_LIBRARY}" )
    107     message( "CBLAS_INCLUDE_DIR = ${CBLAS_INCLUDE_DIR}" )
     109    message( "CBLAS_LIBRARIES = ${CBLAS_LIBRARIES}" )
    108110  endif( TRACE_COMPONENTS_FOUND )
    109111else( CBLAS_FOUND )
    110112  message( STATUS "CBLAS not found, using gslcblas = ${GSLCBLAS_LIBRARY}" )
    111113  set( CBLAS_LIBRARY ${GSL_CBLAS_LIBRARY} )
     114  set( CBLAS_LIBRARIES ${GSL_CBLAS_LIBRARIES} )
    112115  set( CBLAS_INCLUDE_DIR ${GSL_INCLUDE_DIRS} )
    113116endif( CBLAS_FOUND )
     117
     118# CLAPACK configuration
     119find_package( CLAPACK REQUIRED )
     120
     121if( CLAPACK_FOUND AND TRACE_COMPONENTS_FOUND )
     122  message("CLAPACK_INCLUDE_DIR = ${CLAPACK_INCLUDE_DIR}")
     123  message("CLAPACK_LIBRARY = ${CLAPACK_LIBRARY}")
     124  message("CLAPACK_LIBRARIES = ${CLAPACK_LIBRARIES}")
     125endif( )
     126
    114127# BZIP2 configuration
    115128find_package( BZip2 REQUIRED )
    … …  
    219232add_library( tol SHARED ${TOL_SUBLIBRARIES} )
    220233target_link_libraries( tol
    221   ${GSL_LIBRARY} ${CBLAS_LIBRARY} ${BZIP2_LIBRARIES} ${Boost_LIBRARIES}
     234  ${GSL_LIBRARY} ${CBLAS_LIBRARIES} ${CLAPACK_LIBRARIES}
     235  ${BZIP2_LIBRARIES} ${Boost_LIBRARIES}
    222236  ${LAPACK_LIBRARIES} ${FFTW_LIBRARIES} ${ZLIB_LIBRARIES}
    223237  ${ZIPARCHIVE_LIBRARY} ${CHOLMOD_LIBRARIES} ${LTDL_LIBRARIES} )
  • tol/btol/vmatrix_type/CMakeLists.txt

    rc07874d r67d200b  
    99target_include_directories( vmatrix_type PRIVATE
    1010  "${CHOLMOD_INCLUDE_DIR}"
    11   "${PROJECT_SOURCE_DIR}/bmath/gsl_ext" )
     11  "${PROJECT_SOURCE_DIR}/bmath/gsl_ext"
     12  "{$CBLAS_INCLUDE_DIR}" )
  • tol/cmake/modules/FindCBLAS.cmake

    rc07874d r67d200b  
    3333
    3434include( FindPackageHandleStandardArgs )
    35 # handle the QUIETLY and REQUIRED arguments and set FFTW3_FOUND to TRUE
     35# handle the QUIETLY and REQUIRED arguments and set CLAPACK_FOUND to TRUE
    3636# if all listed variables are TRUE
    3737
    … …  
    4242  check_library_exists( "${CBLAS_LIBRARY}" cblas_dtrsm "" FOUND_CBLAS_DTRSM )
    4343  if( NOT FOUND_CBLAS_DTRSM )
    44     message( FATAL_ERROR "Could not find cblas_dtrsm in ${CBLAS_LIBRARY}, take a look at the error message in ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log to find out what was going wrong. If you don't have pkg-config installed you will most likely have to set CBLAS_LIBRARY by hand (i.e. -DCBLAS_LIBRARY='/path/to/libcblas.so') !" )
     44    message( FATAL_ERROR "Could not find cblas_dtrsm in ${CBLAS_LIBRARY}, take a look at the error message in ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log to find out what was going wrong. You will most likely have to set CBLAS_LIBRARY by hand (i.e. -DCBLAS_LIBRARY='/path/to/libcblas.so') !" )
    4545  endif( NOT FOUND_CBLAS_DTRSM )
    4646endif (CBLAS_FOUND)
Note: See TracChangeset for help on using the changeset viewer.