| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
clean code Co-authored-by: guanlongfeng<guanlongfeng1@huawei.com> # message auto-generated for no-merge-commit merge: !3171 merge clean_code_clang-format into master clean code Created-by: glf2016 Commit-by: guanlongfeng Merged-by: ascend-robot Description: clean_code_clang-format c++ clean code See merge request: Ascend/torchair!3171 | 3 个月前 | |
clean code Co-authored-by: guanlongfeng<guanlongfeng1@huawei.com> # message auto-generated for no-merge-commit merge: !3171 merge clean_code_clang-format into master clean code Created-by: glf2016 Commit-by: guanlongfeng Merged-by: ascend-robot Description: clean_code_clang-format c++ clean code See merge request: Ascend/torchair!3171 | 3 个月前 | |
clean code Co-authored-by: guanlongfeng<guanlongfeng1@huawei.com> # message auto-generated for no-merge-commit merge: !3171 merge clean_code_clang-format into master clean code Created-by: glf2016 Commit-by: guanlongfeng Merged-by: ascend-robot Description: clean_code_clang-format c++ clean code See merge request: Ascend/torchair!3171 | 3 个月前 | |
更新自定义算子python callback生成的python代码的格式 Co-authored-by: Chang-an-HW<machangan@huawei.com> # message auto-generated for no-merge-commit merge: !3554 merge feature/custom-op-py-schema-bound-execute into master 更新自定义算子python callback生成的python代码的格式 Created-by: Chang-an-HW Commit-by: Chang-an-HW Merged-by: ascend-robot Description: 更新自定义算子python callback生成的python代码的格式 See merge request: Ascend/torchair!3554 | 1 个月前 | |
更新自定义算子python callback生成的python代码的格式 Co-authored-by: Chang-an-HW<machangan@huawei.com> # message auto-generated for no-merge-commit merge: !3554 merge feature/custom-op-py-schema-bound-execute into master 更新自定义算子python callback生成的python代码的格式 Created-by: Chang-an-HW Commit-by: Chang-an-HW Merged-by: ascend-robot Description: 更新自定义算子python callback生成的python代码的格式 See merge request: Ascend/torchair!3554 | 1 个月前 | |
clean code Co-authored-by: guanlongfeng<guanlongfeng1@huawei.com> # message auto-generated for no-merge-commit merge: !3171 merge clean_code_clang-format into master clean code Created-by: glf2016 Commit-by: guanlongfeng Merged-by: ascend-robot Description: clean_code_clang-format c++ clean code See merge request: Ascend/torchair!3171 | 3 个月前 | |
clean code Co-authored-by: guanlongfeng<guanlongfeng1@huawei.com> # message auto-generated for no-merge-commit merge: !3171 merge clean_code_clang-format into master clean code Created-by: glf2016 Commit-by: guanlongfeng Merged-by: ascend-robot Description: clean_code_clang-format c++ clean code See merge request: Ascend/torchair!3171 | 3 个月前 | |
build: 升级C++编译标准至c++20 Co-authored-by: chenhaozhe<chenhaozhe1@huawei.com> # message auto-generated for no-merge-commit merge: !3478 merge cpp20 into master build: 升级C++编译标准至c++20 Created-by: c_34 Commit-by: chenhaozhe Merged-by: ascend-robot Description: ### 背景 新版 PyTorch 头文件强制要求 C++20,torchair 仍以 C++17 编译时,构建 torch_npu 目标报错: ATen/ATen.h:5: #error C++20 or later compatible compiler is required to use ATen. torch/all.h:5: #error C++20 or later compatible compiler is required to use PyTorch. torch_npu_stub.cpp 经 GetCANNInfo.h 引入 torch 头,因编译标准为 C++17 触发上述 #error。 [2026/07/30 20:12:06.576 GMT+08:00] [ 56%] Built target _abi_compat_ge_apis [2026/07/30 20:12:06.576 GMT+08:00] [ 57%] Building CXX object torchair/CMakeFiles/_torchair.dir/cann_ir_ability/cann_ir_ability.cpp.o [2026/07/30 20:12:06.576 GMT+08:00] [ 61%] Building CXX object torchair/CMakeFiles/_torchair.dir/concrete_graph/export.cpp.o [2026/07/30 20:12:06.576 GMT+08:00] [ 61%] Building CXX object torchair/CMakeFiles/_torchair.dir/concrete_graph/executor.cpp.o [2026/07/30 20:12:06.576 GMT+08:00] [ 63%] Building CXX object torchair/CMakeFiles/_torchair.dir/concrete_graph/concrete_graph.cpp.o [2026/07/30 20:12:06.576 GMT+08:00] [ 64%] Building CXX object torchair/CMakeFiles/_torchair.dir/concrete_graph/hdc_channel.cpp.o [2026/07/30 20:12:06.576 GMT+08:00] [ 64%] Building CXX object torchair/CMakeFiles/_torchair.dir/concrete_graph/logger.cpp.o [2026/07/30 20:12:06.576 GMT+08:00] [ 66%] Building CXX object torchair/CMakeFiles/_torchair.dir/concrete_graph/npu_aoe.cpp.o [2026/07/30 20:12:06.576 GMT+08:00] In file included from /opt/_internal/cpython-3.10.20/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:4, [2026/07/30 20:12:06.576 GMT+08:00] from /workspace/CODE/third_party/torchair/torchair/torchair/include/executor.h:10, [2026/07/30 20:12:06.576 GMT+08:00] from /workspace/CODE/third_party/torchair/torchair/torchair/concrete_graph/executor.cpp:1: [2026/07/30 20:12:06.576 GMT+08:00] /opt/_internal/cpython-3.10.20/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:5:2: error: #error C++20 or later compatible compiler is required to use PyTorch. [2026/07/30 20:12:06.576 GMT+08:00] 5 | #error C++20 or later compatible compiler is required to use PyTorch. [2026/07/30 20:12:06.576 GMT+08:00] | ^~~~~ [2026/07/30 20:12:06.577 GMT+08:00] In file included from /opt/_internal/cpython-3.10.20/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:4, [2026/07/30 20:12:06.577 GMT+08:00] from /workspace/CODE/third_party/torchair/torchair/torchair/include/executor.h:10, [2026/07/30 20:12:06.577 GMT+08:00] from /workspace/CODE/third_party/torchair/torchair/torchair/include/concrete_graph.h:8, [2026/07/30 20:12:06.577 GMT+08:00] from /workspace/CODE/third_party/torchair/torchair/torchair/concrete_graph/concrete_graph.cpp:3: [2026/07/30 20:12:06.577 GMT+08:00] /opt/_internal/cpython-3.10.20/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:5:2: error: #error C++20 or later compatible compiler is required to use PyTorch. [2026/07/30 20:12:06.577 GMT+08:00] 5 | #error C++20 or later compatible compiler is required to use PyTorch. [2026/07/30 20:12:06.577 GMT+08:00] | ^~~~~ [2026/07/30 20:12:06.577 GMT+08:00] In file included from /opt/_internal/cpython-3.10.20/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:4, [2026/07/30 20:12:06.577 GMT+08:00] from /workspace/CODE/third_party/torchair/torchair/torchair/include/executor.h:10, [2026/07/30 20:12:06.577 GMT+08:00] from /workspace/CODE/third_party/torchair/torchair/torchair/include/concrete_graph.h:8, [2026/07/30 20:12:06.577 GMT+08:00] from /workspace/CODE/third_party/torchair/torchair/torchair/concrete_graph/export.cpp:4: [2026/07/30 20:12:06.577 GMT+08:00] /opt/_internal/cpython-3.10.20/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:5:2: error: #error C++20 or later compatible compiler is required to use PyTorch. [2026/07/30 20:12:06.577 GMT+08:00] 5 | #error C++20 or later compatible compiler is required to use PyTorch. [2026/07/30 20:12:06.577 GMT+08:00] | ^~~~~ [2026/07/30 20:12:06.577 GMT+08:00] [ 67%] Building CXX object torchair/CMakeFiles/_torchair.dir/concrete_graph/session.cpp.o [2026/07/30 20:12:06.577 GMT+08:00] In file included from /opt/_internal/cpython-3.10.20/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/types.h:4, [2026/07/30 20:12:06.577 GMT+08:00] from /opt/_internal/cpython-3.10.20/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:5, [2026/07/30 20:12:06.577 GMT+08:00] from /opt/_internal/cpython-3.10.20/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:4, [2026/07/30 20:12:06.577 GMT+08:00] from /opt/_internal/cpython-3.10.20/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:5, [2026/07/30 20:12:06.577 GMT+08:00] from /opt/_internal/cpython-3.10.20/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:4, [2026/07/30 20:12:06.577 GMT+08:00] from /opt/_internal/cpython-3.10.20/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data.h:4, [2026/07/30 20:12:06.577 GMT+08:00] from /opt/_internal/cpython-3.10.20/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:10: [2026/07/30 20:12:06.577 GMT+08:00] /opt/_internal/cpython-3.10.20/lib/python3.10/site-packages/torch/include/ATen/ATen.h:5:2: error: #error C++20 or later compatible compiler is required to use ATen. [2026/07/30 20:12:06.577 GMT+08:00] 5 | #error C++20 or later compatible compiler is required to use ATen. ### 改动 - CMake 构建:CMAKE_CXX_STANDARD 17 → 20(CMakeLists.txt、tests/CMakeLists.txt),torch_npu_local_stub 等 stub 目标随之以 C++20 编译。 - 运行时 g++ 编译:-std=c++17 → -std=c++20(custom_op_compiler.py、inductor_npu_ext compiler/revert_ascir、示例 setup.py)。 - 测试:torchair_customop_compiler_st.py 断言同步更新为 -std=c++20。 See merge request: Ascend/torchair!3478 | 1 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 1 个月前 |