LCOV - code coverage report
Current view: top level - src/platform/stub - platform_info_stub.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 26 26
Test Date: 2026-07-28 10:52:27 Functions: 100.0 % 15 15

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2025 Huawei Technologies Co., Ltd.
       3              :  * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
       4              :  * CANN Open Software License Agreement Version 2.0 (the "License").
       5              :  * Please refer to the License for details. You may not use this file except in compliance with the License.
       6              :  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
       7              :  * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
       8              :  * See LICENSE in the root of the software repository for the full text of the License.
       9              :  */
      10              : 
      11              : #include "platform_info.h"
      12              : namespace fe {
      13            2 : PlatformInfoManager::PlatformInfoManager() : init_flag_(false), runtime_init_flag_(false), opti_compilation_info_() {}
      14              : 
      15            2 : PlatformInfoManager::~PlatformInfoManager() {}
      16              : 
      17           14 : PlatformInfoManager& PlatformInfoManager::Instance()
      18              : {
      19           14 :     static PlatformInfoManager platform_info;
      20           14 :     return platform_info;
      21              : }
      22              : 
      23           21 : PlatformInfoManager& PlatformInfoManager::GeInstance()
      24              : {
      25           21 :     static PlatformInfoManager ge_platform_info;
      26           21 :     return ge_platform_info;
      27              : }
      28              : 
      29            3 : uint32_t PlatformInfoManager::Finalize() { return 0U; }
      30              : 
      31            5 : __attribute__((visibility("default"))) uint32_t PlatformInfoManager::InitializePlatformInfo() { return 0; }
      32              : 
      33            3 : __attribute__((visibility("default"))) uint32_t PlatformInfoManager::GetPlatformInfo(
      34              :     const std::string SoCVersion, PlatformInfo& platform_info, OptionalInfo& opti_compilation_info)
      35              : {
      36            3 :     return 0;
      37              : }
      38              : 
      39            6 : __attribute__((visibility("default"))) uint32_t PlatformInfoManager::GetPlatformInfos(
      40              :     const std::string SoCVersion, PlatFormInfos& platform_info, OptionalInfos& opti_compilation_info)
      41              : {
      42            6 :     return 0;
      43              : }
      44              : 
      45              : __attribute__((visibility("default"))) uint32_t
      46            3 : PlatformInfoManager::GetPlatformInstanceByDevice(const uint32_t& device_id, PlatFormInfos& platform_info)
      47              : {
      48            3 :     return 0;
      49              : }
      50              : 
      51            3 : __attribute__((visibility("default"))) uint32_t PlatformInfoManager::GetPlatformInfoWithOutSocVersion(
      52              :     PlatFormInfos& platform_info, OptionalInfos& opti_compilation_info)
      53              : {
      54            3 :     return 0;
      55              : }
      56              : 
      57            3 : uint32_t PlatformInfoManager::UpdateRuntimePlatformInfosByDevice(
      58              :     const uint32_t& device_id, PlatFormInfos& platform_infos)
      59              : {
      60            3 :     return 0;
      61              : }
      62              : 
      63            3 : uint32_t PlatformInfoManager::UpdatePlatformInfos(fe::PlatFormInfos& platform_info) { return 0; }
      64              : 
      65            3 : uint32_t PlatformInfoManager::GetRuntimePlatformInfosByDevice(
      66              :     const uint32_t& device_id, PlatFormInfos& platform_infos, bool need_deep_copy)
      67              : {
      68            3 :     return 0;
      69              : }
      70              : 
      71            3 : uint32_t PlatformInfoManager::UpdatePlatformInfos(const std::string& soc_version, fe::PlatFormInfos& platform_info)
      72              : {
      73            3 :     return 0;
      74              : }
      75              : 
      76            3 : uint32_t PlatformInfoManager::InitRuntimePlatformInfos(const std::string& SoCVersion) { return 0; }
      77              : } // namespace fe
        

Generated by: LCOV version 2.0-1