Commit 9de8d893 authored by Sang Ik Lee's avatar Sang Ik Lee Committed by Robert Kimball

Replace halide patch with cmake options. (#2419)

parent 10522f64
......@@ -45,7 +45,6 @@ ExternalProject_Add(
GIT_REPOSITORY ${HALIDE_GIT_REPO_URL}
GIT_TAG ${HALIDE_GIT_TAG}
UPDATE_COMMAND ""
PATCH_COMMAND patch -p1 --forward --reject-file=- -i ${CMAKE_SOURCE_DIR}/cmake/halide.patch || exit 0
CMAKE_GENERATOR ${CMAKE_GENERATOR}
CMAKE_GENERATOR_PLATFORM ${CMAKE_GENERATOR_PLATFORM}
CMAKE_GENERATOR_TOOLSET ${CMAKE_GENERATOR_TOOLSET}
......@@ -58,6 +57,18 @@ ExternalProject_Add(
-DWITH_TUTORIALS=OFF
-DWITH_TESTS=OFF
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DTARGET_ARM=OFF
-DTARGET_AARCH64=OFF
-DTARGET_HEXAGON=OFF
-DTARGET_METAL=OFF
-DTARGET_MIPS=OFF
-DTARGET_POWERPC=OFF
-DTARGET_PTX=OFF
-DTARGET_AMDGPU=OFF
-DTARGET_OPENCL=OFF
-DTARGET_OPENGL=OFF
-DTARGET_OPENGLCOMPUTE=OFF
-DTARGET_D3D12COMPUTE=OFF
EXCLUDE_FROM_ALL TRUE
)
......
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d70fdc79d..60aa4c3b7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -131,7 +131,8 @@ function(check_llvm_target TARGET HAS_TARGET)
set(_llvm_required_version ${ARGV2})
endif()
if (NOT LLVM_VERSION LESS _llvm_required_version)
- list(FIND LLVM_TARGETS_TO_BUILD ${TARGET} _found_target)
+ set(NGRAPH_TARGETS_TO_BUILD "X86")
+ list(FIND NGRAPH_TARGETS_TO_BUILD ${TARGET} _found_target)
if (_found_target GREATER -1)
set(${HAS_TARGET} ON PARENT_SCOPE)
else()
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