mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-21 21:39:15 +00:00
28 lines
532 B
C++
28 lines
532 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 <filesystem>
|
|
#include <string>
|
|
|
|
namespace rtc {
|
|
|
|
struct src_file
|
|
{
|
|
std::filesystem::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
|