Commit 8986a83e authored by fenglei.tian's avatar fenglei.tian

revert to master cmakelist, add a ;

parent 35646d4f
...@@ -206,6 +206,7 @@ if (NGRAPH_CPU_ENABLE AND LLVM_INCLUDE_DIR AND ...@@ -206,6 +206,7 @@ if (NGRAPH_CPU_ENABLE AND LLVM_INCLUDE_DIR AND
"NGRAPH_TBB_ENABLE" "NGRAPH_TBB_ENABLE"
) )
endif() endif()
set_source_files_properties(codegen/compiler.cpp PROPERTIES COMPILE_DEFINITIONS "${HEADER_SEARCH_DEFINES};")
set(NGRAPH_CPU_DEBUGINFO_ENABLE 0 CACHE STRING "Enable debuginfo in the CPU backend") set(NGRAPH_CPU_DEBUGINFO_ENABLE 0 CACHE STRING "Enable debuginfo in the CPU backend")
if(NGRAPH_DISTRIBUTED_ENABLE AND MPI_CXX_INCLUDE_PATH) if(NGRAPH_DISTRIBUTED_ENABLE AND MPI_CXX_INCLUDE_PATH)
...@@ -217,15 +218,15 @@ if(NGRAPH_DISTRIBUTED_ENABLE AND MPI_CXX_INCLUDE_PATH) ...@@ -217,15 +218,15 @@ if(NGRAPH_DISTRIBUTED_ENABLE AND MPI_CXX_INCLUDE_PATH)
set(SRC ${SRC} set(SRC ${SRC}
ops/allreduce.cpp ops/allreduce.cpp
) )
set(HEADER_SEARCH_DEFINES ${HEADER_SEARCH_DEFINES} set_property(SOURCE codegen/compiler.cpp APPEND PROPERTY COMPILE_DEFINITIONS
"MPI_HEADER_PATH=\"${MPI_C_INCLUE_PATH}\"" "MPI_HEADER_PATH=\"${MPI_C_INCLUDE_PATH}\";")
)
endif() endif()
# GPU backend current requires CPU because they share compiler.cpp, # GPU backend current requires CPU because they share compiler.cpp,
# and compiler.cpp requires MKLDNN # and compiler.cpp requires MKLDNN
if(NGRAPH_GPU_ENABLE) if(NGRAPH_GPU_ENABLE)
include_directories(SYSTEM ${CUDA_INCLUDE_DIRS} ${CUDNN_INCLUDE_DIR}) include_directories(SYSTEM ${CUDA_INCLUDE_DIRS} ${CUDNN_INCLUDE_DIRS})
# Add sources for the GPU backend # Add sources for the GPU backend
# and all its dependencies # and all its dependencies
set(SRC ${SRC} set(SRC ${SRC}
...@@ -239,11 +240,9 @@ endif() ...@@ -239,11 +240,9 @@ endif()
runtime/gpu/gpu_tensor_view_wrapper.cpp runtime/gpu/gpu_tensor_view_wrapper.cpp
runtime/gpu/gpu_util.cpp runtime/gpu/gpu_util.cpp
) )
set(HEADER_SEARCH_DEFINES ${HEADER_SEARCH_DEFINES} set_property(SOURCE codegen/compiler.cpp APPEND_STRING PROPERTY COMPILE_DEFINITIONS
"CUDA_HEADER_PATHS=\"${CUDA_INCLUDE_DIRS}\"" "CUDA_HEADER_PATHS=\"${CUDA_INCLUDE_DIRS}\";")
)
endif() endif()
set_source_files_properties(codegen/compiler.cpp PROPERTIES COMPILE_DEFINITIONS "${HEADER_SEARCH_DEFINES}")
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment