已合并
chore(license): expand C++/shell CANN OSL headers + setup.py initialize/finalize swap #26
fanyuwei创建于 4月24日
chore(license): expand C++/shell CANN OSL headers + setup.py initialize/finalize swap #26
已合并
共 48 个文件变更+383-10
| @@ -1,6 +1,13 @@ | |||
| 1 | #!/bin/bash | 1 | #!/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 package | 12 | # 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/bash | 1 | #!/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 package | 12 | # Build ACLNN run package |
| 6 | 13 | ||
| @@ -1,6 +1,13 @@ | |||
| 1 | #!/bin/bash | 1 | #!/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 | 12 | # 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 | ||
| 7 | import os | 13 | import 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 | pass | 87 | pass |
| 82 | 88 | ||
| 83 | - def finalize_options(self): | 89 | + def initialize_options(self): |
| 84 | pass | 90 | pass |
| 85 | 91 | ||
| 86 | def run(self): | 92 | def run(self): |
| @@ -1,6 +1,13 @@ | |||
| 1 | #!/bin/bash | 1 | #!/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 install | 12 | # Build wheel package and optionally install |
| 6 | 13 | ||
| @@ -1,6 +1,13 @@ | |||
| 1 | #!/bin/bash | 1 | #!/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 test | 12 | # Build, install and test |
| 6 | 13 | ||
| @@ -1,5 +1,6 @@ | |||
| 1 | #!/usr/bin/env python3 | 1 | #!/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 of | 6 | # 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/bash | 1 | #!/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_example | 12 | # Build Python wheel package for direct_launch_example |
| 6 | 13 | ||
| @@ -1,8 +1,14 @@ | |||
| 1 | #!/usr/bin/env python3 | 1 | #!/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 | ||
| 7 | import os | 13 | import os |
| 8 | import shutil | 14 | import shutil |
| @@ -1,5 +1,6 @@ | |||
| 1 | #!/usr/bin/env python3 | 1 | #!/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 of | 6 | # 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 python3 | 1 | #!/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 of | 6 | # 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/bash | 1 | #!/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/bash | 1 | #!/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 python3 | 1 | #!/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 of | 5 | # This program is free software, you can redistribute it and/or modify it under the terms and conditions of |