/*
* Copyright (c) 2025 Huawei Technologies Co., Ltd.
* This program is free software, you can redistribute it and/or modify it under the terms and conditions of
* CANN Open Software License Agreement Version 2.0 (the "License").
* Please refer to the License for details. You may not use this file except in compliance with the License.
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
* See LICENSE in the root of the software repository for the full text of the License.
*/

/* !
 * \file sk_scope_kernel.asc
 * \brief
 */

#include "kernel_operator.h"
#include "sk_scope_kernel_types.h"

#define SK_SCOPE_CONCAT_INNER(a, b) a##b
#define SK_SCOPE_CONCAT(a, b) SK_SCOPE_CONCAT_INNER(a, b)

#ifdef SK_SCOPE_SYMBOL_SUFFIX
#define SK_SCOPE_SYMBOL(name) SK_SCOPE_CONCAT(name, SK_SCOPE_SYMBOL_SUFFIX)
#else
#define SK_SCOPE_SYMBOL(name) name
#endif

extern "C" __global__ __vector__ void SK_SCOPE_SYMBOL(sk_scope_kernel_begin)(ScopeKernelArgs args) {
}

extern "C" __global__ __vector__ void SK_SCOPE_SYMBOL(sk_scope_kernel_end)(ScopeKernelArgs args) {
}

extern "C" __global__ __vector__ void SK_SCOPE_SYMBOL(sk_placeholder_kernel)(ScopeKernelArgs args) {
}

extern "C" void SK_SCOPE_SYMBOL(sk_scope_kernel_begin_do)(void* stream, ScopeKernelArgs args)
{
    SK_SCOPE_SYMBOL(sk_scope_kernel_begin)<<<1, nullptr, stream>>>(args);
}

extern "C" void SK_SCOPE_SYMBOL(sk_scope_kernel_end_do)(void* stream, ScopeKernelArgs args)
{
    SK_SCOPE_SYMBOL(sk_scope_kernel_end)<<<1, nullptr, stream>>>(args);
}

extern "C" void SK_SCOPE_SYMBOL(sk_placeholder_kernel_do)(void* stream, ScopeKernelArgs args)
{
    SK_SCOPE_SYMBOL(sk_placeholder_kernel)<<<1, nullptr, stream>>>(args);
}