* Copyright (c) 2026 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.
*/
#ifndef CCE_RUNTIME_API_IMPL_RT_CONFIG_HPP
#define CCE_RUNTIME_API_IMPL_RT_CONFIG_HPP
#include "api_rt_config.hpp"
namespace cce {
namespace runtime {
class ApiImplRtConfig : public ApiRtConfig {
public:
rtError_t CtxSetSysParamOpt(const rtSysParamOpt configOpt, const int64_t configVal) override;
rtError_t CtxGetSysParamOpt(const rtSysParamOpt configOpt, int64_t* const configVal) override;
rtError_t SetDeviceResLimit(const uint32_t devId, const rtDevResLimitType_t type, const uint32_t value) override;
rtError_t ResetDeviceResLimit(const uint32_t devId) override;
rtError_t GetDeviceResLimit(const uint32_t devId, const rtDevResLimitType_t type, uint32_t* const value) override;
rtError_t SetStreamResLimit(Stream* const stm, const rtDevResLimitType_t type, const uint32_t value) override;
rtError_t ResetStreamResLimit(Stream* const stm) override;
rtError_t GetStreamResLimit(
const Stream* const stm, const rtDevResLimitType_t type, uint32_t* const value) override;
rtError_t UseStreamResInCurrentThread(const Stream* const stm) override;
rtError_t NotUseStreamResInCurrentThread(const Stream* const stm) override;
rtError_t GetResInCurrentThread(const rtDevResLimitType_t type, uint32_t* const value) override;
};
}
}
#endif