mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-13 17:55:48 +00:00
* Legacy support: customized filesystem * Update cmakefile for python alternative path * fix build issues * CK has no boost dependency * More fixes to issues found on legay systems * fix clang format issue * Check if blob is correctly generated in cmake * fix the python issues * add a compiler flag for codegen when using alternative python * use target_link_options instead of target_compile_options --------- Co-authored-by: illsilin <Illia.Silin@amd.com>
28 lines
530 B
C++
28 lines
530 B
C++
#ifndef GUARD_HOST_TEST_RTC_INCLUDE_RTC_COMPILE_KERNEL
|
|
#define GUARD_HOST_TEST_RTC_INCLUDE_RTC_COMPILE_KERNEL
|
|
|
|
#include <rtc/kernel.hpp>
|
|
#include <ck/filesystem.hpp>
|
|
#include <string>
|
|
|
|
namespace rtc {
|
|
|
|
struct src_file
|
|
{
|
|
CK::fs::path path;
|
|
std::string_view content;
|
|
};
|
|
|
|
struct compile_options
|
|
{
|
|
std::string flags = "";
|
|
std::string kernel_name = "main";
|
|
};
|
|
|
|
kernel compile_kernel(const std::vector<src_file>& src,
|
|
compile_options options = compile_options{});
|
|
|
|
} // namespace rtc
|
|
|
|
#endif
|