mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-13 17:55:48 +00:00
32 lines
722 B
C++
32 lines
722 B
C++
// Copyright (c) Advanced Micro Devices, Inc., or its affiliates.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#ifndef GUARD_HOST_TEST_RTC_INCLUDE_RTC_COMPILE_KERNEL
|
|
#define GUARD_HOST_TEST_RTC_INCLUDE_RTC_COMPILE_KERNEL
|
|
|
|
#include <rtc/kernel.hpp>
|
|
#include <rtc/filesystem.hpp>
|
|
#include <string>
|
|
|
|
namespace rtc {
|
|
|
|
struct src_file
|
|
{
|
|
src_file(std::filesystem::path p, std::string c) : path{std::move(p)}, content{std::move(c)} {}
|
|
fs::path path;
|
|
std::string content;
|
|
};
|
|
|
|
struct compile_options
|
|
{
|
|
std::string flags = "";
|
|
std::string kernel_name = "main";
|
|
};
|
|
|
|
kernel compile_kernel(const std::vector<src_file>& srcs,
|
|
compile_options options = compile_options{});
|
|
|
|
} // namespace rtc
|
|
|
|
#endif
|