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 : #ifndef HCCLV2_DEV_TYPE_H
12 : #define HCCLV2_DEV_TYPE_H
13 : #include "../utils/enum_factory.h"
14 : namespace Hccl {
15 :
16 : // 对内芯片类型
17 4200 : MAKE_ENUM(DevType, DEV_TYPE_910A, DEV_TYPE_V51_310_P3, DEV_TYPE_910A2, DEV_TYPE_V51_310_P1, DEV_TYPE_910A3, DEV_TYPE_950, DEV_TYPE_960,
18 : DEV_TYPE_NOSOC)
19 :
20 1755 : MAKE_ENUM(HcclMainboardId, MAINBOARD_POD, MAINBOARD_A_K_SERVER, MAINBOARD_A_X_SERVER, MAINBOARD_PCIE_STD,
21 : MAINBOARD_RSV, MAINBOARD_EQUIPMENT, MAINBOARD_EVB, MAINBOARD_OTHERS);
22 :
23 2 : inline std::string DevTypeToString(DevType type)
24 : {
25 2 : return type.Describe();
26 : }
27 : } // namespace Hccl
28 : #endif // HCCLV2_DEV_TYPE_H
|