Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
4a6438ff
Commit
4a6438ff
authored
Jun 21, 2023
by
Artur Wojcik
Browse files
cmake_gpu_kernels
parent
17d982aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
src/targets/gpu/CMakeLists.txt
src/targets/gpu/CMakeLists.txt
+14
-2
No files found.
src/targets/gpu/CMakeLists.txt
View file @
4a6438ff
...
...
@@ -172,7 +172,19 @@ add_library(migraphx_gpu
set_target_properties
(
migraphx_gpu PROPERTIES EXPORT_NAME gpu
)
migraphx_generate_export_header
(
migraphx_gpu
)
target_link_options
(
migraphx_gpu PUBLIC -Wno-option-ignored
)
if
(
WIN32
)
target_include_directories
(
migraphx_gpu PRIVATE kernels
)
target_sources
(
migraphx_gpu
PRIVATE
kernels/migraphx_kernels.cpp
kernels/migraphx_kernels.hpp
kernels/resource.h
kernels/resource.rc
)
target_compile_options
(
migraphx_gpu PUBLIC $<BUILD_INTERFACE:-Wno-ignored-attributes>
)
else
()
target_link_libraries
(
migraphx_gpu PRIVATE migraphx_kernels
)
target_link_options
(
migraphx_gpu PUBLIC -Wno-option-ignored
)
endif
()
function
(
register_migraphx_gpu_ops PREFIX
)
foreach
(
OP
${
ARGN
}
)
...
...
@@ -293,7 +305,7 @@ else()
endif
()
target_link_libraries
(
migraphx_gpu PUBLIC migraphx MIOpen roc::rocblas
)
target_link_libraries
(
migraphx_gpu PRIVATE migraphx_device
migraphx_kernels
)
target_link_libraries
(
migraphx_gpu PRIVATE migraphx_device
)
if
(
NOT WIN32
)
# TODO: re-enable when CK is ported to Windows
target_link_libraries
(
migraphx_gpu PRIVATE composable_kernel::jit_library
)
...
...
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