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
702cf7fe
Commit
702cf7fe
authored
6 years ago
by
Jaikrishnan Menon
Committed by
Scott Cyphers
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake: Halide (#1374)
parent
49bd01fc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
0 deletions
+68
-0
CMakeLists.txt
CMakeLists.txt
+7
-0
external_halide.cmake
cmake/external_halide.cmake
+61
-0
No files found.
CMakeLists.txt
View file @
702cf7fe
...
...
@@ -222,6 +222,13 @@ else()
endif
()
include
(
cmake/external_tbb.cmake
)
if
(
NGRAPH_HALIDE
)
message
(
WARNING
"Halide build system integration is currently using an older LLVM release \
and is not expected to work across most build environments. Consider \
disabling it till this message goes away"
)
include
(
cmake/external_halide.cmake
)
endif
()
add_subdirectory
(
src
)
if
(
NGRAPH_UNIT_TEST_ENABLE
)
...
...
This diff is collapsed.
Click to expand it.
cmake/external_halide.cmake
0 → 100644
View file @
702cf7fe
# ******************************************************************************
# Copyright 2018 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ******************************************************************************
include
(
ExternalProject
)
find_package
(
ZLIB REQUIRED
)
set
(
HALIDE_LLVM_TARBALL_URL https://releases.llvm.org/6.0.1/clang+llvm-6.0.1-x86_64-linux-gnu-ubuntu-16.04.tar.xz
)
set
(
HALIDE_LLVM_SHA1_HASH c7db0162fbf4cc32193b6a85f84f4abee3d107b9
)
ExternalProject_Add
(
ext_halide_llvm
URL
${
HALIDE_LLVM_TARBALL_URL
}
URL_HASH SHA1=
${
HALIDE_LLVM_SHA1_HASH
}
CONFIGURE_COMMAND
""
BUILD_COMMAND
""
INSTALL_COMMAND
""
UPDATE_COMMAND
""
EXCLUDE_FROM_ALL TRUE
)
ExternalProject_Get_Property
(
ext_halide_llvm SOURCE_DIR
)
set
(
HALIDE_LLVM_DIR
"
${
SOURCE_DIR
}
/lib/cmake/llvm"
)
set
(
HALIDE_GIT_REPO_URL https://github.com/halide/Halide
)
set
(
HALIDE_GIT_TAG
"ea9c863"
)
ExternalProject_Add
(
ext_halide
DEPENDS ext_halide_llvm
GIT_REPOSITORY
${
HALIDE_GIT_REPO_URL
}
GIT_TAG
${
HALIDE_GIT_TAG
}
UPDATE_COMMAND
""
CMAKE_ARGS
-DLLVM_DIR=
${
HALIDE_LLVM_DIR
}
-DCMAKE_BUILD_TYPE=
${
CMAKE_BUILD_TYPE
}
-DCMAKE_C_COMPILER=
${
CMAKE_C_COMPILER
}
-DCMAKE_CXX_COMPILER=
${
CMAKE_CXX_COMPILER
}
-DCMAKE_INSTALL_PREFIX=
${
EXTERNAL_PROJECTS_ROOT
}
/halide
TMP_DIR
"
${
EXTERNAL_PROJECTS_ROOT
}
/halide/tmp"
STAMP_DIR
"
${
EXTERNAL_PROJECTS_ROOT
}
/halide/stamp"
DOWNLOAD_DIR
"
${
EXTERNAL_PROJECTS_ROOT
}
/halide/download"
SOURCE_DIR
"
${
EXTERNAL_PROJECTS_ROOT
}
/halide/src"
BINARY_DIR
"
${
EXTERNAL_PROJECTS_ROOT
}
/halide/build"
INSTALL_DIR
"
${
EXTERNAL_PROJECTS_ROOT
}
/halide"
EXCLUDE_FROM_ALL TRUE
)
This diff is collapsed.
Click to expand it.
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