diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-08-04 23:12:48 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-08-04 23:12:48 +0000 |
commit | a7a05382d1c51964bf3ea0536c6ddd9cc9888b72 (patch) | |
tree | 413a9ecf342bf59ff685495eff70f999ee7803ac /bench/btl/CMakeLists.txt | |
parent | c2f8ecf46683adcab0db05199ee2ebe15e6ada4a (diff) |
Add a LU decomposition action in BTL and various cleaning in BTL. For instance
all per plot settings have been moved to a single file, go_mean now takes an
optional second argument "tiny" to generate plots for tiny matrices, and
output of comparison information wrt to previous benchs (if any).
Diffstat (limited to 'bench/btl/CMakeLists.txt')
-rw-r--r-- | bench/btl/CMakeLists.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bench/btl/CMakeLists.txt b/bench/btl/CMakeLists.txt index a7f90a2e9..8fb0ff889 100644 --- a/bench/btl/CMakeLists.txt +++ b/bench/btl/CMakeLists.txt @@ -9,7 +9,8 @@ OPTION(BTL_NOVEC "Disable SSE/Altivec optimizations when possible" OFF) SET(CMAKE_INCLUDE_CURRENT_DIR ON) -IF(CMAKE_COMPILER_IS_GNUCXX) +string(REGEX MATCH icpc IS_ICPC ${CMAKE_CXX_COMPILER}) +IF(CMAKE_COMPILER_IS_GNUCXX OR IS_ICPC) SET(CMAKE_CXX_FLAGS "-g0 -O3 -DNDEBUG") SET(CMAKE_Fortran_FLAGS "-g0 -O3 -DNDEBUG") IF(NOT BTL_NOVEC) @@ -18,7 +19,12 @@ IF(CMAKE_COMPILER_IS_GNUCXX) ELSE(NOT BTL_NOVEC) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DEIGEN_DONT_VECTORIZE") ENDIF(NOT BTL_NOVEC) -ENDIF(CMAKE_COMPILER_IS_GNUCXX) +ENDIF(CMAKE_COMPILER_IS_GNUCXX OR IS_ICPC) + +if(IS_ICPC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fast") + set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fast") +endif(IS_ICPC) include_directories( ${PROJECT_SOURCE_DIR}/actions @@ -76,3 +82,4 @@ add_subdirectory(libs/STL_algo) add_subdirectory(data) + |