已合并
chore(license): expand C++/shell CANN OSL headers + setup.py initialize/finalize swap #26
chore(license): expand C++/shell CANN OSL headers + setup.py initialize/finalize swap #26
已合并
fanyuwei创建于 4月24日
共 48 个文件变更+383-10
@@ -1,6 +1,13 @@
1#!/bin/bash1#!/bin/bash
2# ----------------------------------------------------------------------------------------------------------2# ----------------------------------------------------------------------------------------------------------
3-# Copyright (c) 2025 Huawei Technologies Co., Ltd.3+# Copyright (c) 2026 Huawei Technologies Co., Ltd.
4+# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
5+# CANN Open Software License Agreement Version 2.0 (the "License").
6+# Please refer to the License for details. You may not use this file except in compliance with the License.
7+# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
8+# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
9+# See LICENSE in the root of the software repository for the full text of the License.
10+# ----------------------------------------------------------------------------------------------------------
4# ----------------------------------------------------------------------------------------------------------11# ----------------------------------------------------------------------------------------------------------
5# Build both run package and wheel package12# Build both run package and wheel package
6 13 
@@ -2,6 +2,12 @@
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3# ----------------------------------------------------------------------------------------------------------3# ----------------------------------------------------------------------------------------------------------
4# Copyright (c) 2026 Huawei Technologies Co., Ltd.4# Copyright (c) 2026 Huawei Technologies Co., Ltd.
5+# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
6+# CANN Open Software License Agreement Version 2.0 (the "License").
7+# Please refer to the License for details. You may not use this file except in compliance with the License.
8+# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
9+# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
10+# See LICENSE in the root of the software repository for the full text of the License.
5# ----------------------------------------------------------------------------------------------------------11# ----------------------------------------------------------------------------------------------------------
6 12 
7"""CANN Bench - ACLNN operator benchmarks"""13"""CANN Bench - ACLNN operator benchmarks"""
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,5 +1,11 @@
1/**1/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.2 * Copyright (c) 2026 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.
3 */9 */
4 10 
5/**11/**
@@ -1,5 +1,11 @@
1/**1/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.2 * Copyright (c) 2026 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.
3 */9 */
4 10 
5/**11/**
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,3 +1,12 @@
1+// ----------------------------------------------------------------------------------------------------------
2+// Copyright (c) 2026 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+// ----------------------------------------------------------------------------------------------------------
1/**10/**
2 * Copyright (c) 2026 Huawei Technologies Co., Ltd.11 * Copyright (c) 2026 Huawei Technologies Co., Ltd.
3 */12 */
@@ -1,6 +1,13 @@
1#!/bin/bash1#!/bin/bash
2# ----------------------------------------------------------------------------------------------------------2# ----------------------------------------------------------------------------------------------------------
3-# Copyright (c) 2025 Huawei Technologies Co., Ltd.3+# Copyright (c) 2026 Huawei Technologies Co., Ltd.
4+# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
5+# CANN Open Software License Agreement Version 2.0 (the "License").
6+# Please refer to the License for details. You may not use this file except in compliance with the License.
7+# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
8+# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
9+# See LICENSE in the root of the software repository for the full text of the License.
10+# ----------------------------------------------------------------------------------------------------------
4# ----------------------------------------------------------------------------------------------------------11# ----------------------------------------------------------------------------------------------------------
5# Build ACLNN run package12# Build ACLNN run package
6 13 
@@ -1,6 +1,13 @@
1#!/bin/bash1#!/bin/bash
2# ----------------------------------------------------------------------------------------------------------2# ----------------------------------------------------------------------------------------------------------
3-# Copyright (c) 2025 Huawei Technologies Co., Ltd.3+# Copyright (c) 2026 Huawei Technologies Co., Ltd.
4+# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
5+# CANN Open Software License Agreement Version 2.0 (the "License").
6+# Please refer to the License for details. You may not use this file except in compliance with the License.
7+# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
8+# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
9+# See LICENSE in the root of the software repository for the full text of the License.
10+# ----------------------------------------------------------------------------------------------------------
4# ----------------------------------------------------------------------------------------------------------11# ----------------------------------------------------------------------------------------------------------
5# Build Python wheel package12# Build Python wheel package
6 13 
@@ -2,6 +2,12 @@
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3# ----------------------------------------------------------------------------------------------------------3# ----------------------------------------------------------------------------------------------------------
4# Copyright (c) 2026 Huawei Technologies Co., Ltd.4# Copyright (c) 2026 Huawei Technologies Co., Ltd.
5+# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
6+# CANN Open Software License Agreement Version 2.0 (the "License").
7+# Please refer to the License for details. You may not use this file except in compliance with the License.
8+# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
9+# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
10+# See LICENSE in the root of the software repository for the full text of the License.
5# ----------------------------------------------------------------------------------------------------------11# ----------------------------------------------------------------------------------------------------------
6 12 
7import os13import os
@@ -77,10 +83,10 @@ class CMakeBuildCommand(Command):
77 description = "Build CMake extensions"83 description = "Build CMake extensions"
78 user_options = []84 user_options = []
79 85 
80- def initialize_options(self):86+ def finalize_options(self):
81 pass87 pass
82 88 
83- def finalize_options(self):89+ def initialize_options(self):
84 pass90 pass
85 91 
86 def run(self):92 def run(self):
@@ -1,6 +1,13 @@
1#!/bin/bash1#!/bin/bash
2# ----------------------------------------------------------------------------------------------------------2# ----------------------------------------------------------------------------------------------------------
3-# Copyright (c) 2025 Huawei Technologies Co., Ltd.3+# Copyright (c) 2026 Huawei Technologies Co., Ltd.
4+# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
5+# CANN Open Software License Agreement Version 2.0 (the "License").
6+# Please refer to the License for details. You may not use this file except in compliance with the License.
7+# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
8+# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
9+# See LICENSE in the root of the software repository for the full text of the License.
10+# ----------------------------------------------------------------------------------------------------------
4# ----------------------------------------------------------------------------------------------------------11# ----------------------------------------------------------------------------------------------------------
5# Build wheel package and optionally install12# Build wheel package and optionally install
6 13 
@@ -1,6 +1,13 @@
1#!/bin/bash1#!/bin/bash
2# ----------------------------------------------------------------------------------------------------------2# ----------------------------------------------------------------------------------------------------------
3-# Copyright (c) 2025 Huawei Technologies Co., Ltd.3+# Copyright (c) 2026 Huawei Technologies Co., Ltd.
4+# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
5+# CANN Open Software License Agreement Version 2.0 (the "License").
6+# Please refer to the License for details. You may not use this file except in compliance with the License.
7+# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
8+# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
9+# See LICENSE in the root of the software repository for the full text of the License.
10+# ----------------------------------------------------------------------------------------------------------
4# ----------------------------------------------------------------------------------------------------------11# ----------------------------------------------------------------------------------------------------------
5# Build, install and test12# Build, install and test
6 13 
@@ -1,5 +1,6 @@
1#!/usr/bin/env python31#!/usr/bin/env python3
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3+# -*- coding: utf-8 -*-
3# ----------------------------------------------------------------------------4# ----------------------------------------------------------------------------
4# Copyright (c) 2026 Huawei Technologies Co., Ltd.5# Copyright (c) 2026 Huawei Technologies Co., Ltd.
5# This program is free software, you can redistribute it and/or modify it under the terms and conditions of6# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
@@ -1,6 +1,13 @@
1#!/bin/bash1#!/bin/bash
2# ----------------------------------------------------------------------------------------------------------2# ----------------------------------------------------------------------------------------------------------
3-# Copyright (c) 2025 Huawei Technologies Co., Ltd.3+# Copyright (c) 2026 Huawei Technologies Co., Ltd.
4+# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
5+# CANN Open Software License Agreement Version 2.0 (the "License").
6+# Please refer to the License for details. You may not use this file except in compliance with the License.
7+# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
8+# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
9+# See LICENSE in the root of the software repository for the full text of the License.
10+# ----------------------------------------------------------------------------------------------------------
4# ----------------------------------------------------------------------------------------------------------11# ----------------------------------------------------------------------------------------------------------
5# Build Python wheel package for direct_launch_example12# Build Python wheel package for direct_launch_example
6 13 
@@ -1,8 +1,14 @@
1#!/usr/bin/env python31#!/usr/bin/env python3
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3-# ----------------------------------------------------------------------------3+# ----------------------------------------------------------------------------------------------------------
4# Copyright (c) 2026 Huawei Technologies Co., Ltd.4# Copyright (c) 2026 Huawei Technologies Co., Ltd.
5-# ----------------------------------------------------------------------------5+# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
6+# CANN Open Software License Agreement Version 2.0 (the "License").
7+# Please refer to the License for details. You may not use this file except in compliance with the License.
8+# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
9+# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
10+# See LICENSE in the root of the software repository for the full text of the License.
11+# ----------------------------------------------------------------------------------------------------------
6 12 
7import os13import os
8import shutil14import shutil
@@ -1,5 +1,6 @@
1#!/usr/bin/env python31#!/usr/bin/env python3
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3+# -*- coding: utf-8 -*-
3# ----------------------------------------------------------------------------4# ----------------------------------------------------------------------------
4# Copyright (c) 2026 Huawei Technologies Co., Ltd.5# Copyright (c) 2026 Huawei Technologies Co., Ltd.
5# This program is free software, you can redistribute it and/or modify it under the terms and conditions of6# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
@@ -1,5 +1,6 @@
1#!/usr/bin/env python31#!/usr/bin/env python3
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3+# -*- coding: utf-8 -*-
3# ----------------------------------------------------------------------------4# ----------------------------------------------------------------------------
4# Copyright (c) 2026 Huawei Technologies Co., Ltd.5# Copyright (c) 2026 Huawei Technologies Co., Ltd.
5# This program is free software, you can redistribute it and/or modify it under the terms and conditions of6# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
@@ -1,4 +1,13 @@
1#!/bin/bash1#!/bin/bash
2+# ----------------------------------------------------------------------------------------------------------
3+# Copyright (c) 2026 Huawei Technologies Co., Ltd.
4+# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
5+# CANN Open Software License Agreement Version 2.0 (the "License").
6+# Please refer to the License for details. You may not use this file except in compliance with the License.
7+# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
8+# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
9+# See LICENSE in the root of the software repository for the full text of the License.
10+# ----------------------------------------------------------------------------------------------------------
2# Kernel Bench 评测脚本11# Kernel Bench 评测脚本
3# 用法: ./script/run_evaluation.sh [选项]12# 用法: ./script/run_evaluation.sh [选项]
4 13 
@@ -1,4 +1,13 @@
1#!/bin/bash1#!/bin/bash
2+# ----------------------------------------------------------------------------------------------------------
3+# Copyright (c) 2026 Huawei Technologies Co., Ltd.
4+# This program is free software, you can redistribute it and/or modify it under the terms and conditions of
5+# CANN Open Software License Agreement Version 2.0 (the "License").
6+# Please refer to the License for details. You may not use this file except in compliance with the License.
7+# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
8+# INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
9+# See LICENSE in the root of the software repository for the full text of the License.
10+# ----------------------------------------------------------------------------------------------------------
2# 统一的测试运行脚本(简化版)11# 统一的测试运行脚本(简化版)
3#12#
4# 使用 run_simple.py 直接执行测试,避免 pytest 的参数化收集开销13# 使用 run_simple.py 直接执行测试,避免 pytest 的参数化收集开销
@@ -1,4 +1,5 @@
1#!/usr/bin/env python31#!/usr/bin/env python3
2+# -*- coding: utf-8 -*-
2# ----------------------------------------------------------------------------------------------------------3# ----------------------------------------------------------------------------------------------------------
3# Copyright (c) 2026 Huawei Technologies Co., Ltd.4# Copyright (c) 2026 Huawei Technologies Co., Ltd.
4# This program is free software, you can redistribute it and/or modify it under the terms and conditions of5# This program is free software, you can redistribute it and/or modify it under the terms and conditions of