From a7a05382d1c51964bf3ea0536c6ddd9cc9888b72 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 4 Aug 2008 23:12:48 +0000 Subject: 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). --- bench/btl/CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'bench/btl/CMakeLists.txt') 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) + -- cgit v1.2.3