Ignore:
Timestamp:
Jan 21, 2016, 5:15:33 PM (3 years ago)
Author:
nmedfort
Message:

Work on lowering + some timing and papi information that will be cleaned up later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/CMakeLists.txt

    r4908 r4919  
    1717option(USE_BOOST_MMAP "Using mmap from Boost.Iostreams")
    1818option(ENABLE_PREGENERATED_UCD_FUNCTIONS "Enable compiling the pregenerated UCD functions")
    19 
     19option(PRINT_TIMING_INFORMATION "Write compilation and execution timing information to standard error stream")
    2020
    2121# configure a header file to pass some of the CMake settings
     
    3737
    3838# We incorporate the CMake features provided by LLVM:
    39 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${LLVM_ROOT}/share/llvm/cmake")
     39set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${LLVM_ROOT}/share/llvm/cmake;${CMAKE_CURRENT_SOURCE_DIR}/cmake")
     40
    4041include(LLVMConfig)
    4142
     
    4748# Let's suppose we want to build a JIT compiler with support for
    4849# binary code (no interpreter):
    49 llvm_map_components_to_libnames(REQ_LLVM_LIBRARIES mcjit native IRReader)
     50llvm_map_components_to_libnames(REQ_LLVM_LIBRARIES mcjit native IRReader) # ipo
    5051
    5152message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
     
    124125    target_link_libraries(icgrep ${Boost_LIBRARIES})
    125126ENDIF()
     127IF (PRINT_TIMING_INFORMATION)
     128    find_package(PAPI REQUIRED)
     129    include_directories(${PAPI_INCLUDE_DIRS})
     130    target_link_libraries(icgrep ${PAPI_LIBRARIES})
     131ENDIF()
     132
    126133
    127134target_link_libraries (icgrep UCDlib PabloADT RegExpCompiler CCADT ${REQ_LLVM_LIBRARIES})
     
    314321ENDIF()
    315322
     323IF (PRINT_TIMING_INFORMATION)   
     324    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DPRINT_TIMING_INFORMATION")
     325ENDIF()
     326
    316327SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3 -DNDEBUG")
    317328IF (${CMAKE_SYSTEM} MATCHES "Linux")
Note: See TracChangeset for help on using the changeset viewer.