Ignore:
Timestamp:
Sep 11, 2014, 4:02:00 PM (5 years ago)
Author:
linmengl
Message:

experimental support for BLOCK_SIZE 256 ready to test

File:
1 edited

Legend:

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

    r4137 r4151  
    77set (icgrep_VERSION_MAJOR 0)
    88set (icgrep_VERSION_MINOR 8)
     9
     10option(BLOCK_SIZE_256 "Compiling with BLOCK_SIZE=256")
     11if (BLOCK_SIZE_256)
     12  message("-- Build with BLOCK_SIZE=256")
     13else ()
     14  message("-- Build with BLOCK_SIZE=128")
     15endif()
    916
    1017# configure a header file to pass some of the CMake settings
     
    5764target_link_libraries (icgrep PabloADT RegExpADT ${REQ_LLVM_LIBRARIES})
    5865
    59 set(CMAKE_CXX_FLAGS_RELEASE "-std=gnu++0x -O3 -msse2")
     66set(CMAKE_CXX_FLAGS_RELEASE "-std=c++11 -O3 -msse2")
    6067
    6168# detect LLVM version and add compiler flags.
     
    6572  set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DUSE_LLVM_3_5")
    6673endif(${LLVM_PACKAGE_VERSION} MATCHES "3.4")
     74
     75if (BLOCK_SIZE_256)
     76  set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DUSE_S2P_AVX2 -DBLOCK_SIZE=256 -march=core-avx2 -mavx2 -m64 -fabi-version=6")
     77endif()
    6778
    6879add_test(
Note: See TracChangeset for help on using the changeset viewer.