mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-07-17 00:58:44 +00:00
Use a CMake function with template files to generate the source files for the intantiating the kerenels and to generate the calling function.
17 lines
345 B
C++
17 lines
345 B
C++
// SPDX-License-Identifier: MIT
|
|
// Copyright (c) 2025, Advanced Micro Devices, Inc. All rights reserved.
|
|
|
|
#include "@INSTANCES@.inc"
|
|
|
|
namespace ck::tensor_operation::device::instance {
|
|
|
|
@EXTERN_TEMPLATE_STATEMENTS@;
|
|
|
|
void add_@INSTANCES@(
|
|
@INSTANCES@& instances)
|
|
{
|
|
@CALL_STATEMENTS@;
|
|
}
|
|
|
|
} // namespace ck::tensor_operation::device::instance
|