Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
9de8d893
Commit
9de8d893
authored
Feb 12, 2019
by
Sang Ik Lee
Committed by
Robert Kimball
Feb 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace halide patch with cmake options. (#2419)
parent
10522f64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
15 deletions
+12
-15
external_halide.cmake
cmake/external_halide.cmake
+12
-1
halide.patch
cmake/halide.patch
+0
-14
No files found.
cmake/external_halide.cmake
View file @
9de8d893
...
...
@@ -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
)
...
...
cmake/halide.patch
deleted
100644 → 0
View file @
10522f64
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()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment