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
composable_kernel_ROCM
Commits
a36ebd43
Commit
a36ebd43
authored
Sep 04, 2024
by
Astha Rai
Browse files
updating codegen build for MIOpen access: adding .cmake for codegen component
(cherry picked from commit
652a7c04
)
parent
f16ebf82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
cmake/Embed.cmake
cmake/Embed.cmake
+3
-1
codegen/CMakeLists.txt
codegen/CMakeLists.txt
+5
-0
No files found.
cmake/Embed.cmake
View file @
a36ebd43
...
@@ -233,6 +233,8 @@ function(add_embed_library EMBED_NAME)
...
@@ -233,6 +233,8 @@ function(add_embed_library EMBED_NAME)
else
()
else
()
target_sources
(
${
EMBED_NAME
}
INTERFACE $<TARGET_OBJECTS:
${
INTERNAL_EMBED_LIB
}
>
)
target_sources
(
${
EMBED_NAME
}
INTERFACE $<TARGET_OBJECTS:
${
INTERNAL_EMBED_LIB
}
>
)
endif
()
endif
()
target_include_directories
(
${
EMBED_NAME
}
INTERFACE
"
${
EMBED_DIR
}
/include"
)
target_include_directories
(
${
EMBED_NAME
}
INTERFACE
$<BUILD_INTERFACE:
${
EMBED_DIR
}
/include>
$<INSTALL_INTERFACE:include/ck>
)
endfunction
()
endfunction
()
codegen/CMakeLists.txt
View file @
a36ebd43
...
@@ -39,6 +39,7 @@ set_target_properties(ck_host PROPERTIES
...
@@ -39,6 +39,7 @@ set_target_properties(ck_host PROPERTIES
target_include_directories
(
ck_host PUBLIC
target_include_directories
(
ck_host PUBLIC
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/include>
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/include>
$<INSTALL_INTERFACE:include>
)
)
add_executable
(
ck-template-driver driver/main.cpp
)
add_executable
(
ck-template-driver driver/main.cpp
)
...
@@ -48,6 +49,10 @@ rocm_install(
...
@@ -48,6 +49,10 @@ rocm_install(
TARGETS ck_host ck_headers
TARGETS ck_host ck_headers
EXPORT ck_hostTargets
EXPORT ck_hostTargets
)
)
rocm_install
(
EXPORT ck_hostTargets
FILE composable_kernelck_hostTargets.cmake
NAMESPACE composable_kernel::
DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
/cmake/composable_kernel
)
rocm_install
(
DIRECTORY include/ck DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
)
rocm_install
(
DIRECTORY include/ck DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
)
add_subdirectory
(
test
)
add_subdirectory
(
test
)
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