Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
7c35bf11
Commit
7c35bf11
authored
Nov 27, 2019
by
Paul
Browse files
Package driver
parent
b0aef8c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/driver/CMakeLists.txt
src/driver/CMakeLists.txt
+14
-0
No files found.
src/driver/CMakeLists.txt
View file @
7c35bf11
...
...
@@ -7,9 +7,23 @@ add_executable(driver
inceptionv3.cpp
alexnet.cpp
)
set_target_properties
(
driver PROPERTIES OUTPUT_NAME migraphx-driver
)
# Copy driver for backwards compatibility
add_custom_command
(
TARGET driver
POST_BUILD COMMAND
${
CMAKE_COMMAND
}
-E copy
$<TARGET_FILE:driver>
${
CMAKE_RUNTIME_OUTPUT_DIRECTORY
}
/driver
BYPRODUCTS
${
CMAKE_RUNTIME_OUTPUT_DIRECTORY
}
/driver
)
set_directory_properties
(
PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
${
CMAKE_RUNTIME_OUTPUT_DIRECTORY
}
/driver
)
rocm_clang_tidy_check
(
driver
)
target_link_libraries
(
driver migraphx_cpu migraphx_onnx migraphx_tf
)
if
(
MIGRAPHX_ENABLE_GPU
)
target_link_libraries
(
driver migraphx_gpu
)
target_compile_definitions
(
driver PRIVATE -DHAVE_GPU
)
endif
()
rocm_install_targets
(
TARGETS driver
)
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