Ignore:
Timestamp:
Aug 26, 2015, 1:41:38 PM (4 years ago)
Author:
cameron
Message:

Clean ups for compilation with gcc 4.8

File:
1 edited

Legend:

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

    r4741 r4750  
    300300SET(SIMD_SUPPORT ${RESULT} CACHE STRING "SSE2")
    301301ENDIF()
    302 
     302#message("SIMD_SUPPORT=" ${SIMD_SUPPORT})
    303303SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ENABLE_${SIMD_SUPPORT}}")
    304304
     
    309309
    310310IF (BLOCK_SIZE_256)
    311     SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_S2P_AVX2 -DBLOCK_SIZE=256 -march=core-avx2 -m64")
     311    IF ("${SIMD_SUPPORT}" STREQUAL "AVX1")
     312        SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_S2P_AVX -DUSE_AVX -DBLOCK_SIZE=256 -mavx -m64")
     313    ELSEIF ("${SIMD_SUPPORT}" STREQUAL "AVX2")
     314        SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_S2P_AVX2 -DBLOCK_SIZE=256 -march=core-avx2 -m64")
     315    ENDIF()
    312316ENDIF()
    313317
Note: See TracChangeset for help on using the changeset viewer.