Ignore:
Timestamp:
Nov 12, 2017, 12:34:46 PM (18 months ago)
Author:
cameron
Message:

Some changes for LLVM 6.0.0

File:
1 edited

Legend:

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

    r5733 r5734  
    6363SET(TOOLCHAIN_SRC toolchain/toolchain.cpp toolchain/pipeline.cpp)
    6464
    65 SET(DRIVER_SRC toolchain/driver.cpp toolchain/cpudriver.cpp toolchain/NVPTXDriver.cpp)
     65SET(DRIVER_SRC toolchain/driver.cpp toolchain/cpudriver.cpp)
     66if(ENABLE_CUDA_COMPILE)
     67SET(DRIVER_SRC ${DRIVER_SRC} toolchain/NVPTXDriver.cpp)
     68endif()
    6669
    6770SET(KERNEL_SRC kernels/interface.cpp kernels/kernel.cpp kernels/streamset.cpp kernels/kernel_builder.cpp)
    6871SET(KERNEL_SRC ${KERNEL_SRC} kernels/source_kernel.cpp kernels/s2p_kernel.cpp kernels/deletion.cpp kernels/swizzle.cpp kernels/p2s_kernel.cpp kernels/stdout_kernel.cpp)
    6972
    70 SET(IDISA_SRC IR_Gen/CBuilder.cpp IR_Gen/idisa_builder.cpp IR_Gen/idisa_avx_builder.cpp IR_Gen/idisa_i64_builder.cpp IR_Gen/idisa_sse_builder.cpp IR_Gen/idisa_nvptx_builder.cpp)
     73SET(IDISA_SRC IR_Gen/CBuilder.cpp IR_Gen/idisa_builder.cpp IR_Gen/idisa_avx_builder.cpp IR_Gen/idisa_i64_builder.cpp IR_Gen/idisa_sse_builder.cpp)
    7174SET(IDISA_SRC ${IDISA_SRC} IR_Gen/idisa_target.cpp)
     75if(ENABLE_CUDA_COMPILE)
     76SET(IDISA_SRC ${IDISA_SRC} IR_Gen/idisa_nvptx_builder.cpp)
     77endif()
    7278
    7379SET(PABLO_SRC pablo/pabloAST.cpp pablo/branch.cpp pablo/codegenstate.cpp pablo/builder.cpp pablo/symbol_generator.cpp pablo/printer_pablos.cpp pablo/pablo_toolchain.cpp)
     
    202208SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLLVM_VERSION_INTEGER=${LLVM_VERSION_INTEGER}")
    203209SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLLVM_VERSION_major=${LLVM_VERSION_MAJOR} -DLLVM_VERSION_MINOR=${LLVM_VERSION_MINOR}")
     210message(STATUS "LLVM Version Integer: ${LLVM_VERSION_INTEGER}")
    204211
    205212SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DPARABIX_VERSION='\"${Parabix_REVISION}\"'")
Note: See TracChangeset for help on using the changeset viewer.