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
26645912
Commit
26645912
authored
Jul 07, 2018
by
shssf
Committed by
Robert Kimball
Jul 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backend/API: cmake module to find Intel clDNN (#1155)
parent
ad4dd5b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
FindCLDNN.cmake
cmake/Modules/FindCLDNN.cmake
+46
-0
No files found.
cmake/Modules/FindCLDNN.cmake
0 → 100644
View file @
26645912
# ******************************************************************************
# Copyright 2017-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.
# ******************************************************************************
# The following variables are optionally searched for defaults
# CLDNN_ROOT_DIR: Base directory where all Intel clDNN components are found
#
# The following are set after configuration is done:
# CLDNN_FOUND
# CLDNN_INCLUDE_DIRS
# CLDNN_LIBRARIES
# CLDNN_LIBRARY_DIRS
include
(
FindPackageHandleStandardArgs
)
set
(
CLDNN_ROOT_DIR
""
CACHE PATH
"Folder contains Intel clDNN"
)
find_path
(
CLDNN_INCLUDE_DIR CPP/cldnn_defs.h
HINTS
${
CLDNN_ROOT_DIR
}
PATH_SUFFIXES api include/clDNN
)
find_library
(
CLDNN_LIBRARY clDNN64
HINTS
${
CLDNN_ROOT_DIR
}
PATH_SUFFIXES build/out/Linux64/Release build/out/Linux64/Debug lib
)
find_package_handle_standard_args
(
clDNN DEFAULT_MSG CLDNN_INCLUDE_DIR CLDNN_LIBRARY
)
if
(
CLDNN_FOUND
)
set
(
CLDNN_INCLUDE_DIRS
${
CLDNN_INCLUDE_DIR
}
)
set
(
CLDNN_LIBRARIES
${
CLDNN_LIBRARY
}
)
message
(
STATUS
"Found Intel clDNN: (include:
${
CLDNN_INCLUDE_DIR
}
, library:
${
CLDNN_LIBRARY
}
)"
)
mark_as_advanced
(
CLDNN_ROOT_DIR CLDNN_LIBRARY CLDNN_INCLUDE_DIR
)
endif
()
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