| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix sample run failed Co-authored-by: qiang_zq<qiang.zhangqiang@huawei.com> # message auto-generated for no-merge-commit merge: !1608 merge sample into master fix sample run failed Created-by: qiang_zq Commit-by: qiang_zq Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 一、执行sample样例 报错 1)执行/example/2_advanced_features/group/0_compute_group 下的run.sh报错: [ERROR] Operation failed: aclrtGetGroupCount(&groupCount) returned error code 207000 2)执行/example/2_advanced_features/label/0_simple_label 下的run.sh报错: [ERROR] Operation failed: aclrtSetLabel(labels[0], stream) returned error code 107005 3)执行 /example/2_advanced_features/notify/2_cntnotify 下的run.sh报错: [ERROR] Operation failed: aclrtCntNotifyCreate(&cntNotify, 0) returned error code 207000 4)执行 /example/2_advanced_features/tdt_buffer/0_shared_buffer 下的run.sh报错: [ERROR] Operation failed: acltdtAllocBuf(64, ACL_TDT_NORMAL_MEM, &headBuf) returned error code 200006 5)执行 /example/2_advanced_features/tdt_channel/0_simple_channel 下的run.sh报错: [ERROR] Operation failed: acltdtSendTensor(channel, sendDataset, 1000) returned error code 100000 6)执行 /example/2_advanced_features/tdt_channel/1_channel_capacity 下的run.sh报错: [ERROR] acltdtCreateChannelWithCapacity is nullptr 7)执行/example/2_advanced_features/tdt_queue/0_simple_queue 下的run.sh报错: [ERROR] Operation failed: acltdtSetQueueAttr(attr, ACL_TDT_QUEUE_NAME_PTR, sizeof(queueName), queueName) returned error code 100000 8)执行/example/2_advanced_features/tdt_queue/1_queue_route 下的run.sh报错: [ERROR] Operation failed: CreateQueue("route_src_queue", 4, &srcQid) returned error code 100000 9)执行 /example/2_advanced_features/tdt_queue/2_queue_grant_attach 下的run.sh报错: [ERROR] Operation failed: acltdtSetQueueAttr(attr, ACL_TDT_QUEUE_NAME_PTR, sizeof(queueName), queueName) returned error code 100000 10)执行 /example/4_reliability/overflow_detection/0_overflow_detection下的run.sh报错: [ERROR] Operation failed: aclrtSetStreamOverflowSwitch(stream, 1) returned error code 207000 11)执行 /example/4_reliability/snapshot/0_snapshot_management下的run.sh报错: [ERROR] Operation failed: aclrtSnapShotProcessRestore() returned error code 507909 二、方案 0)样例均为新增sample 1)A2、A3不支持 group、cntnotify、tdt_buffer、acltdtEnqueue相关接口 导致执行失败,snapshot为试验接口,后续950已不支持,这些样例删除 2)修复其他报错用例 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> NA ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 1)执行/home/cyj/402zhuxian/runtime/example/2_advanced_features/group/0_compute_group 下的run.sh报错: --A2、A3不支持,删除 2)执行/home/cyj/402zhuxian/runtime/example/2_advanced_features/label/0_simple_label 下的run.sh报错:  3)执行 /home/cyj/402zhuxian/runtime/example/2_advanced_features/notify/2_cntnotify 下的run.sh报错: -- --A2、A3不支持,删除 4)执行 /home/cyj/402zhuxian/runtime/example/2_advanced_features/tdt_buffer/0_shared_buffer 下的run.sh报错: -- A2、A3不支持,删除 5)执行 /home/cyj/402zhuxian/runtime/example/2_advanced_features/tdt_channel/0_simple_channel 下的run.sh报错:  6)执行 /home/cyj/402zhuxian/runtime/example/2_advanced_features/tdt_channel/1_channel_capacity 下的run.sh报错:  7)执行/home/cyj/402zhuxian/runtime/example/2_advanced_features/tdt_queue/0_simple_queue 下的run.sh报错:  8)执行/home/cyj/402zhuxian/runtime/example/2_advanced_features/tdt_queue/1_queue_route 下的run.sh报错:  9)执行 /home/cyj/402zhuxian/runtime/example/2_advanced_features/tdt_queue/2_queue_grant_attach 下的run.sh报错: -- A2、A3不支持,删除 10)执行 /home/cyj/402zhuxian/runtime/example/4_reliability/overflow_detection/0_overflow_detection下的run.sh报错:  11)执行 /home/cyj/402zhuxian/runtime/example/4_reliability/snapshot/0_snapshot_management下的run.sh报错: -- -试验接口,后续950已不支持,删除 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> example/*/README.md ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/runtime!1608 | 3 个月前 | |
fix sample run failed Co-authored-by: qiang_zq<qiang.zhangqiang@huawei.com> # message auto-generated for no-merge-commit merge: !1608 merge sample into master fix sample run failed Created-by: qiang_zq Commit-by: qiang_zq Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 一、执行sample样例 报错 1)执行/example/2_advanced_features/group/0_compute_group 下的run.sh报错: [ERROR] Operation failed: aclrtGetGroupCount(&groupCount) returned error code 207000 2)执行/example/2_advanced_features/label/0_simple_label 下的run.sh报错: [ERROR] Operation failed: aclrtSetLabel(labels[0], stream) returned error code 107005 3)执行 /example/2_advanced_features/notify/2_cntnotify 下的run.sh报错: [ERROR] Operation failed: aclrtCntNotifyCreate(&cntNotify, 0) returned error code 207000 4)执行 /example/2_advanced_features/tdt_buffer/0_shared_buffer 下的run.sh报错: [ERROR] Operation failed: acltdtAllocBuf(64, ACL_TDT_NORMAL_MEM, &headBuf) returned error code 200006 5)执行 /example/2_advanced_features/tdt_channel/0_simple_channel 下的run.sh报错: [ERROR] Operation failed: acltdtSendTensor(channel, sendDataset, 1000) returned error code 100000 6)执行 /example/2_advanced_features/tdt_channel/1_channel_capacity 下的run.sh报错: [ERROR] acltdtCreateChannelWithCapacity is nullptr 7)执行/example/2_advanced_features/tdt_queue/0_simple_queue 下的run.sh报错: [ERROR] Operation failed: acltdtSetQueueAttr(attr, ACL_TDT_QUEUE_NAME_PTR, sizeof(queueName), queueName) returned error code 100000 8)执行/example/2_advanced_features/tdt_queue/1_queue_route 下的run.sh报错: [ERROR] Operation failed: CreateQueue("route_src_queue", 4, &srcQid) returned error code 100000 9)执行 /example/2_advanced_features/tdt_queue/2_queue_grant_attach 下的run.sh报错: [ERROR] Operation failed: acltdtSetQueueAttr(attr, ACL_TDT_QUEUE_NAME_PTR, sizeof(queueName), queueName) returned error code 100000 10)执行 /example/4_reliability/overflow_detection/0_overflow_detection下的run.sh报错: [ERROR] Operation failed: aclrtSetStreamOverflowSwitch(stream, 1) returned error code 207000 11)执行 /example/4_reliability/snapshot/0_snapshot_management下的run.sh报错: [ERROR] Operation failed: aclrtSnapShotProcessRestore() returned error code 507909 二、方案 0)样例均为新增sample 1)A2、A3不支持 group、cntnotify、tdt_buffer、acltdtEnqueue相关接口 导致执行失败,snapshot为试验接口,后续950已不支持,这些样例删除 2)修复其他报错用例 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> NA ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> 1)执行/home/cyj/402zhuxian/runtime/example/2_advanced_features/group/0_compute_group 下的run.sh报错: --A2、A3不支持,删除 2)执行/home/cyj/402zhuxian/runtime/example/2_advanced_features/label/0_simple_label 下的run.sh报错:  3)执行 /home/cyj/402zhuxian/runtime/example/2_advanced_features/notify/2_cntnotify 下的run.sh报错: -- --A2、A3不支持,删除 4)执行 /home/cyj/402zhuxian/runtime/example/2_advanced_features/tdt_buffer/0_shared_buffer 下的run.sh报错: -- A2、A3不支持,删除 5)执行 /home/cyj/402zhuxian/runtime/example/2_advanced_features/tdt_channel/0_simple_channel 下的run.sh报错:  6)执行 /home/cyj/402zhuxian/runtime/example/2_advanced_features/tdt_channel/1_channel_capacity 下的run.sh报错:  7)执行/home/cyj/402zhuxian/runtime/example/2_advanced_features/tdt_queue/0_simple_queue 下的run.sh报错:  8)执行/home/cyj/402zhuxian/runtime/example/2_advanced_features/tdt_queue/1_queue_route 下的run.sh报错:  9)执行 /home/cyj/402zhuxian/runtime/example/2_advanced_features/tdt_queue/2_queue_grant_attach 下的run.sh报错: -- A2、A3不支持,删除 10)执行 /home/cyj/402zhuxian/runtime/example/4_reliability/overflow_detection/0_overflow_detection下的run.sh报错:  11)执行 /home/cyj/402zhuxian/runtime/example/4_reliability/snapshot/0_snapshot_management下的run.sh报错: -- -试验接口,后续950已不支持,删除 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> example/*/README.md ## 类型标签 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/runtime!1608 | 3 个月前 | |
优化example示例中 产品支持情况 描述 Co-authored-by: qiang_zq<qiang.zhangqiang@huawei.com> # message auto-generated for no-merge-commit merge: !1276 merge sample into master 优化example示例中 产品支持情况 描述 Created-by: qiang_zq Commit-by: qiang_zq Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 1、补充部分新增example示例 readme 缺少的“产品支持情况”描述 2、历史example示例 readme 中“产品支持情况”与docs中API描述不一致 3、优化example样例执行步骤,run.sh中编译完成后自动执行,将原来编译+运行 2步操作 合为一步 4、目录 README 补全: 为 device、stream、event、memory、kernel、callback、model_ri、notify、tdt_buffer、tdt_channel、tdt_queue、built_in_task 等目录新增了 README.md,改善了导航体验 5、链接路径修正: 修正了嵌套目录的相对路径(从 ../../README.md 改为 ../../../README.md) 代码审查报告 https://gitcode.com/cann/runtime/pull/1276?ref=&did=65e24693459e9d96f1d4ad02bef022d0968fba55#tid-166839878 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> https://gitcode.com/cann/runtime/issues/299 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> /example/0_quickstart/0_hello_cann$ bash run.sh Configuring CMake... -- The C compiler identification is GNU 13.3.0 -- The CXX compiler identification is GNU 13.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /mnt/workspace/gitCode/qiang_zq/runtime/example/0_quickstart/0_hello_cann/build Building... [ 50%] Building CXX object CMakeFiles/main.dir/main.cpp.o [100%] Linking CXX executable main [100%] Built target main Build completed successfully! Executable location: /mnt/workspace/gitCode/qiang_zq/runtime/example/0_quickstart/0_hello_cann/build/main Run the sample: ./build/main ACL init successfully Set device 0 successfully Create stream successfully Input vectors: self: [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] other: [0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0] alpha: 1.0 Create output aclDataBuffer successfully, buffer addr = 0x12c0c0016000 Get workspace size successfully, workspace size = 0 [Warning]: tiling struct [ReduceOpTilingDataV2] is conflict with one in file kl_div_v2.cc, line 41 [Warning]: tiling struct [RepeatInterleaveGradTilingData] is conflict with one in file repeat_interleave_grad_tiling.h, line 21 [Warning]: tiling struct [IndexFillTilingData] is conflict with one in file index_fill_tiling.h, line 21 [Warning]: tiling struct [MapIndexTilingData] is conflict with one in file map_index_tiling_arch35.h, line 23 [Warning]: tiling struct [MaskedSelectV3TilingData] is conflict with one in file masked_select_v3_tiling.h, line 27 [Warning]: tiling struct [MaskedSelectV3TilingData] is conflict with one in file masked_select_v3_tiling.h, line 27 [Warning]: tiling struct [ScatterPaKvCacheTilingData] is conflict with one in file scatter_pa_kv_cache_tiling.h, line 35 [Warning]: tiling struct [ScatterPaKvCacheTilingData] is conflict with one in file scatter_pa_kv_cache_tiling.h, line 35 [Warning]: tiling struct [TopKTopPSampleTilingData] is conflict with one in file top_k_top_p_sample_tiling.h, line 26 [Warning]: tiling struct [AvgPool3dGradTilingBlockParam] is conflict with one in file avg_pool_3d_grad_tiling.h, line 99 [Warning]: tiling struct [AvgPool3dGradTilingParam] is conflict with one in file avg_pool_3d_grad_tiling.h, line 125 [Warning]: tiling struct [FusedCrossEntropyLossWithMaxSumTilingData] is conflict with one in file fused_cross_entropy_loss_with_max_sum_tiling.h, line 27 [Warning]: tiling struct [TilingDataBackgroundReplace] is conflict with one in file background_replace_tiling.h, line 22 [Warning]: tiling struct [TilingDataBlendImages] is conflict with one in file blend_images_custom_tiling.h, line 24 Launch aclnnAdd successfully Synchronize stream successfully Vector addition result: result[0] = 1.5 (expected: 1.5) result[1] = 3.0 (expected: 3.0) result[2] = 4.5 (expected: 4.5) result[3] = 6.0 (expected: 6.0) result[4] = 7.5 (expected: 7.5) result[5] = 9.0 (expected: 9.0) result[6] = 10.5 (expected: 10.5) result[7] = 12.0 (expected: 12.0) Free device memory successfully Destroy stream successfully Reset device successfully ACL finalize successfully Sample run successfully! /example/0_quickstart/1_error_handling$ bash run.sh Configuring CMake... -- The C compiler identification is GNU 13.3.0 -- The CXX compiler identification is GNU 13.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done -- Build files have been written to: /mnt/workspace/gitCode/qiang_zq/runtime/example/0_quickstart/1_error_handling/build Building... [ 50%] Building CXX object CMakeFiles/main.dir/main.cpp.o [100%] Linking CXX executable main [100%] Built target main Build completed successfully! Executable location: /mnt/workspace/gitCode/qiang_zq/runtime/example/0_quickstart/1_error_handling/build/main Run the sample: ./build/main [INFO] ACL init and set device successfully [INFO] Current run mode: ACL_HOST [INFO] Triggering an expected invalid-parameter error with aclrtGetRunMode(nullptr) [ERROR] Diagnostics: ret=100000, peekErr=0, lastErr=0, recentErrMsg=[PID: 2238268] 2026-03-30-14:54:54.405.703 Invalid_Argument_Null_Pointer(EH0002): Argument [runMode] must not be null. Solution: Try again with a correct pointer argument. [WARN] aclrtGetErrorVerbose(0) returned error code 207000 [INFO] After diagnostics are consumed once: peekErr=207000, lastErr=207000, recentErrMsg=<null> [INFO] ACL finalize successfully ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> example/0_quickstart/1_error_handling/README.md example/1_basic_features/device/0_device_normal/README.md .... example/*/README.md ## 类型标签 <!-- [x] 表示选中 --> - [ ] Bug修复 - [x] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/runtime!1276 | 4 个月前 |
tdt_channel
本目录聚焦 TDT Channel 的基础数据传输与容量控制能力。
样例列表
- 0_simple_channel:演示 Channel、Dataset、DataItem 的构建、发送、接收与数据校验。
- 1_channel_capacity:演示带容量限制的 Channel、容量查询、清理与优雅停止。