LCOV - code coverage report
Current view: top level - common - feature_ctrl_open.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 17 17
Test Date: 2026-08-31 10:07:22 Functions: 100.0 % 6 6

            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              : #include "queue_schedule_feature_ctrl.h"
      11              : 
      12              : namespace bqs {
      13              : using ChipType_t = enum {
      14              :     CHIP_ASCEND_910A = 1,
      15              :     CHIP_ASCEND_910B = 5,
      16              :     CHIP_ASCEND_950 = 15,
      17              :     CHIP_CLOUD_V5 = 16,
      18              :     CHIP_ASCEND_350 = 19,
      19              :     CHIP_CLOUD_V6 = 22,
      20              : };
      21              : 
      22            2 : bool QSFeatureCtrl::IsSupportSetVisibleDevices(int64_t chip)
      23              : {
      24            2 :     const ChipType_t g_chipType = static_cast<ChipType_t>(chip);
      25            2 :     switch (g_chipType) {
      26            1 :         case CHIP_ASCEND_910A:
      27              :         case CHIP_ASCEND_910B:
      28              :         case CHIP_ASCEND_950:
      29              :         case CHIP_ASCEND_350:
      30              :         case CHIP_CLOUD_V6:
      31            1 :             return true;
      32            1 :         default:
      33            1 :             return false;
      34              :     }
      35              : }
      36              : 
      37            7 : bool QSFeatureCtrl::ShouldSetThreadFIFO(uint32_t deviceId)
      38              : {
      39              :     (void)deviceId;
      40            7 :     return false;
      41              : }
      42              : 
      43            7 : bool QSFeatureCtrl::ShouldAddToCGroup(uint32_t deviceId)
      44              : {
      45              :     (void)deviceId;
      46            7 :     return true;
      47              : }
      48              : 
      49            6 : bool QSFeatureCtrl::UseErrorLogThreshold(uint32_t deviceId)
      50              : {
      51              :     (void)deviceId;
      52            6 :     return false;
      53              : }
      54              : 
      55            5 : bool QSFeatureCtrl::ShouldDisableRecvRequestEvent(uint32_t deviceId)
      56              : {
      57              :     (void)deviceId;
      58            5 :     return false;
      59              : }
      60              : 
      61            5 : bool QSFeatureCtrl::ShouldSetPidPriority(uint32_t deviceId)
      62              : {
      63              :     (void)deviceId;
      64            5 :     return false;
      65              : }
      66              : } // namespace bqs
        

Generated by: LCOV version 2.0-1