Changeset 35
- Timestamp:
- 03/09/08 12:44:35 (17 years ago)
- Files:
-
- 60 added
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r31 r35 4 4 project (BDM) 5 5 6 7 6 # In order to be able to use the newly written FindXXX package, the 8 7 # location of the FindXXX.cmake file must be added to the cmake modules 9 # list from within a CMakeLists.txt file as follows (assuming that 10 # FindFoo.cmake exists within a directory called cmake_modules within 11 # the top-level source directory): 12 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake_modules/") 13 8 # list from within a CMakeLists.txt file as follows: 9 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}\\CMake_modules\\") 14 10 15 11 ###################### 16 12 #Platform specific 17 13 IF(WIN32) 14 15 # IF YOU WANT TO USE YOUR OWN INSTALLATION OF ITTP AND/OR ACML LIBRARIES, 16 # THEN IT IS NECESSARY TO CREATE TEXT FILE "\WIN32\LOCAL_PATHS.TXT" WITH 17 # COPIES OF THE TWO FOLLOWING LINES AND THEN CORECT BOTH INVOLVED PATHS 18 SET(ITPP_DIR ".\\win32\\itpp-4.0.1") 19 SET(ACML_DIR ".\\win32\\acml3.6.0") 20 21 INCLUDE(\\win32\\local_paths.txt OPTIONAL) 22 18 23 FIND_PACKAGE(ITPP REQUIRED) 19 24 FIND_PACKAGE(ACML REQUIRED) … … 21 26 IF(ITPP_FOUND) 22 27 INCLUDE_DIRECTORIES(${ITPP_INCLUDE_DIR}) 28 LINK_DIRECTORIES(${NATIVE_ITPP_LIB_PATH}) 23 29 ENDIF(ITPP_FOUND) 24 30 -
CMake_modules/FindACML.cmake
r31 r35 8 8 # ACML_LIBRARY, where to find the ACML library. 9 9 10 11 10 FIND_PATH(ACML_INCLUDE_DIR acml.h 12 C:\\Program Files\\AMD\\acml3.6.0\\pgi32\\include 11 "${ACML_DIR}\\pgi32\\include" 13 12 ) 14 13 15 14 FIND_LIBRARY(ACML_LIBRARY 16 15 NAMES libacml_dll 17 PATHS C:\\Program Files\\AMD\\acml3.6.0\\pgi32\\lib16 PATHS "${ACML_DIR}\\pgi32\\lib" 18 17 ) 19 20 18 21 19 IF (ACML_LIBRARY AND ACML_INCLUDE_DIR) -
CMake_modules/FindITPP.cmake
r31 r35 8 8 # ITPP_LIBRARY, where to find the ITPP library. 9 9 10 11 10 FIND_PATH(ITPP_INCLUDE_DIR itpp/itbase.h 12 C:\\itpp-4.0.1 11 ${ITPP_DIR} 13 12 ) 14 15 13 16 14 FIND_LIBRARY(ITPP_LIBRARY 17 15 NAMES itpp itpp_debug 18 PATHS C:\\itpp-4.0.1\\win32\\lib16 PATHS "${ITPP_DIR}\\win32\\lib" 19 17 ) 20 18 -
bdm/itpp_ext.cpp
r32 r35 188 188 /* (if q not positive go to step 8) */ 189 189 if (q > 0.0) { 190 w = expm1(q); 190 // TODO: w = expm1(q); 191 w = exp(q)-1; 191 192 /* ^^^^^ original code had approximation with rel.err < 2e-7 */ 192 193 /* if t is rejected sample again at step 8 */ -
tests/CMakeLists.txt
r33 r35 10 10 11 11 IF(WIN32) 12 IF(ITPP_INCLUDE_DIR) 13 include_directories(${ITPP_INCLUDE_DIR}) 14 ENDIF(ITPP_INCLUDE_DIR) 15 IF(ITPP_LIB_DIR) 16 link_directories(${ITPP_LIB_DIR}) 17 ENDIF(ITPP_LIB_DIR) 12 SET(BdmLibs ${BdmLibs} libacml_dll) 18 13 ENDIF(WIN32) 19 14 -
tests/test0.cpp
r32 r35 49 49 50 50 //Exit program: 51 getchar(); 51 52 return 0; 52 53