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
1af7dde2
Unverified
Commit
1af7dde2
authored
Jul 10, 2019
by
Scott Cyphers
Committed by
GitHub
Jul 10, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3196 from NervanaSystems/avijit/plaid_rpath_fix
Added rpath setting for PlaidML backend
parents
a93547d6
1185fb48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
CMakeLists.txt
CMakeLists.txt
+2
-2
CMakeLists.txt
src/ngraph/runtime/plaidml/CMakeLists.txt
+8
-0
No files found.
CMakeLists.txt
View file @
1af7dde2
...
...
@@ -306,12 +306,12 @@ set(NGRAPH_INSTALL_DOC "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DOCDIR}")
set
(
NGRAPH_INSTALL_BIN
"
${
CMAKE_INSTALL_PREFIX
}
/
${
CMAKE_INSTALL_BINDIR
}
"
)
if
(
LINUX
)
if
(
DEFINED NGRAPH_RPATH
)
set
(
CMAKE_BUILD_RPATH
"$ORIGIN:
${
NGRAPH_RPATH
}
"
)
set
(
CMAKE_INSTALL_RPATH
"$ORIGIN:
${
NGRAPH_RPATH
}
"
)
else
()
set
(
CMAKE_BUILD_RPATH
"$ORIGIN"
)
set
(
CMAKE_INSTALL_RPATH
"$ORIGIN"
)
endif
()
set
(
CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE
)
set
(
CMAKE_BUILD_WITH_INSTALL_RPATH TRUE
)
endif
()
#-----------------------------------------------------------------------------------------------
...
...
src/ngraph/runtime/plaidml/CMakeLists.txt
View file @
1af7dde2
...
...
@@ -75,3 +75,11 @@ target_include_directories(plaidml_backend SYSTEM PUBLIC ${PLAIDML_INCLUDE_DIRS}
target_link_libraries
(
plaidml_backend PUBLIC ngraph libplaidml
)
install
(
TARGETS plaidml_backend LIBRARY DESTINATION
${
NGRAPH_INSTALL_LIB
}
)
set
(
CMAKE_MACOSX_RPATH 1
)
if
(
APPLE
)
set_property
(
TARGET plaidml_backend PROPERTY INSTALL_RPATH
"@loader_path/;@loader_path/../../.."
)
elseif
(
DEFINED NGRAPH_RPATH
)
set_property
(
TARGET plaidml_backend PROPERTY INSTALL_RPATH
"
\$
ORIGIN;
\$
ORIGIN/../../..;
${
NGRAPH_RPATH
}
"
)
else
()
set_property
(
TARGET plaidml_backend PROPERTY INSTALL_RPATH
"
\$
ORIGIN;
\$
ORIGIN/../../.."
)
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