* 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.
*/
#ifndef LLT_FUSION_ENGINE_ST_STUB_PLATFORM_UTIL_STUB_H_
#define LLT_FUSION_ENGINE_ST_STUB_PLATFORM_UTIL_STUB_H_
#include "platform_util/inc/platform_util.h"
namespace tune {
class PlatformUtilStub {
public:
static inline void EVB1910() {
ChipInfo &chip_info = PlatformUtil::Instance().chip_info_;
chip_info.core_num = 2;
chip_info.cube_size[0] = 16;
chip_info.cube_size[1] = 16;
chip_info.cube_size[2] = 16;
chip_info.vector_size = 256;
chip_info.l1_size = 1 * 1024 * 1024;
chip_info.l2_size = 8 * 1024 * 1024;
chip_info.l0a_size = 64 * 1024;
chip_info.l0b_size = 64 * 1024;
chip_info.l0c_size = 256 * 1024;
chip_info.ub_size = 256 * 1024;
chip_info.l1tol0a_b_w = 512;
chip_info.l1tol0b_b_w = 256;
chip_info.l0cto_ub_w = 512;
chip_info.ubtol1_b_w = 512;
chip_info.l1toub_b_w = 128;
chip_info.l2read_b_w = 128;
chip_info.l2write_b_w = 64;
chip_info.l2_rate = 128;
chip_info.ddr_b_w = 67;
chip_info.ddr_read_rate = 67;
chip_info.ddr_write_b_w = 64;
chip_info.frequency = 680 * 1000 * 1000;
PlatformUtil::Instance().soc_version_ = "ascend910B1";
return;
}
};
};
#endif