"...include/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "7cafc6cd894e3691fb5a7a1ff7d59eb590273921"
Commit d4b010fd authored by Artur Wojcik's avatar Artur Wojcik
Browse files

cmake_gpu_kernels

parent 2152dc5b
...@@ -175,7 +175,19 @@ add_library(migraphx_gpu ...@@ -175,7 +175,19 @@ add_library(migraphx_gpu
set_target_properties(migraphx_gpu PROPERTIES EXPORT_NAME gpu) set_target_properties(migraphx_gpu PROPERTIES EXPORT_NAME gpu)
migraphx_generate_export_header(migraphx_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) function(register_migraphx_gpu_ops PREFIX)
foreach(OP ${ARGN}) foreach(OP ${ARGN})
...@@ -296,7 +308,7 @@ else() ...@@ -296,7 +308,7 @@ else()
endif() endif()
target_link_libraries(migraphx_gpu PUBLIC migraphx MIOpen roc::rocblas) 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) if(NOT WIN32)
# TODO: re-enable when CK is ported to Windows # TODO: re-enable when CK is ported to Windows
target_link_libraries(migraphx_gpu PRIVATE composable_kernel::jit_library) target_link_libraries(migraphx_gpu PRIVATE composable_kernel::jit_library)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment