2008-07-09 22:04:48 +08:00
|
|
|
|
2008-07-27 19:39:47 +08:00
|
|
|
find_package(ATLAS)
|
|
|
|
if (ATLAS_FOUND)
|
2011-01-31 17:45:03 +08:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/libs/f77)
|
2008-07-27 19:39:47 +08:00
|
|
|
btl_add_bench(btl_atlas main.cpp)
|
|
|
|
if(BUILD_btl_atlas)
|
|
|
|
target_link_libraries(btl_atlas ${ATLAS_LIBRARIES})
|
|
|
|
set_target_properties(btl_atlas PROPERTIES COMPILE_FLAGS "-DCBLASNAME=ATLAS -DHAS_LAPACK=1")
|
|
|
|
endif(BUILD_btl_atlas)
|
|
|
|
endif (ATLAS_FOUND)
|
2008-07-11 02:28:50 +08:00
|
|
|
|
|
|
|
find_package(MKL)
|
|
|
|
if (MKL_FOUND)
|
2011-01-31 17:45:03 +08:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/libs/f77)
|
2008-07-11 02:28:50 +08:00
|
|
|
btl_add_bench(btl_mkl main.cpp)
|
|
|
|
if(BUILD_btl_mkl)
|
|
|
|
target_link_libraries(btl_mkl ${MKL_LIBRARIES})
|
2008-07-27 19:39:47 +08:00
|
|
|
set_target_properties(btl_mkl PROPERTIES COMPILE_FLAGS "-DCBLASNAME=INTEL_MKL -DHAS_LAPACK=1")
|
2008-07-11 02:28:50 +08:00
|
|
|
endif(BUILD_btl_mkl)
|
|
|
|
endif (MKL_FOUND)
|
2008-07-29 04:48:21 +08:00
|
|
|
|
|
|
|
find_package(GOTO)
|
|
|
|
if (GOTO_FOUND)
|
2011-01-31 17:45:03 +08:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/libs/f77)
|
2008-07-29 04:48:21 +08:00
|
|
|
btl_add_bench(btl_goto main.cpp)
|
|
|
|
if(BUILD_btl_goto)
|
|
|
|
target_link_libraries(btl_goto ${GOTO_LIBRARIES} )
|
|
|
|
set_target_properties(btl_goto PROPERTIES COMPILE_FLAGS "-DCBLASNAME=GOTO -DPUREBLAS")
|
|
|
|
endif(BUILD_btl_goto)
|
|
|
|
endif (GOTO_FOUND)
|
2009-03-05 16:11:47 +08:00
|
|
|
|
|
|
|
|
2011-01-31 17:45:03 +08:00
|
|
|
find_package(GOTO2)
|
|
|
|
if (GOTO2_FOUND)
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/libs/f77)
|
|
|
|
btl_add_bench(btl_goto2 main.cpp)
|
|
|
|
if(BUILD_btl_goto2)
|
|
|
|
target_link_libraries(btl_goto2 ${GOTO_LIBRARIES} )
|
|
|
|
set_target_properties(btl_goto2 PROPERTIES COMPILE_FLAGS "-DCBLASNAME=GOTO2 -DPUREBLAS")
|
|
|
|
endif(BUILD_btl_goto2)
|
|
|
|
endif (GOTO2_FOUND)
|
|
|
|
|
2009-03-05 16:11:47 +08:00
|
|
|
find_package(ACML)
|
|
|
|
if (ACML_FOUND)
|
2011-01-31 17:45:03 +08:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/libs/f77)
|
2009-03-05 16:11:47 +08:00
|
|
|
btl_add_bench(btl_acml main.cpp)
|
|
|
|
if(BUILD_btl_acml)
|
|
|
|
target_link_libraries(btl_acml ${ACML_LIBRARIES} )
|
|
|
|
set_target_properties(btl_acml PROPERTIES COMPILE_FLAGS "-DCBLASNAME=ACML -DHAS_LAPACK=1 -DPUREBLAS")
|
|
|
|
endif(BUILD_btl_acml)
|
|
|
|
endif (ACML_FOUND)
|