| fix: aclrtMemcpy host to host for schedule_context, 修正示例代码内存拷贝类型错误
Co-authored-by: Developer user<jialimin1@huawei.com>
# message auto-generated for no-merge-commit merge:
!5918 merge master into master
fix: aclrtMemcpy host to host for schedule_context, 修正示例代码内存拷贝类型错误
Created-by: jialimin1
Commit-by: Developer user
Merged-by: cann-robot
Description: ## 描述
1、修改aclrtMemcpy host to host for schedule_context, 修正示例代码内存拷贝类型错误
2、修改日志打印内容
## 关联的Issue
Issue #2640
Issue #2641
<!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000-->
<!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。-->
## 测试
```
编译包验证:
[2026-05-26 03:18:07] ./uninstall.sh
[2026-05-26 03:18:07] ./upgrade.sh
[2026-05-26 03:18:07] CRC: 1888598674
[2026-05-26 03:18:07] SHA256: e5e52d301ebc0a74b5f34866bf194936a5fc441b6658e781ba1bc761fd8fbde1
[2026-05-26 03:18:07] Skipping md5sum at user request
[2026-05-26 03:18:07]
[2026-05-26 03:18:07] Self-extractable archive "cann-ops-transformer-custom_linux-x86_64.run" successfully created.
样例验证:
[2026-05-26 03:21:42] Start compile and run example file: ../ffn/ffn_worker_scheduler/examples/test_aclnn_inplace_ffn_worker_scheduler.cpp
[2026-05-26 03:21:49] Init ffn success, token_info_buf_size=192,token_data_buf_size= 1024.
[2026-05-26 03:21:49] layer_ids_buf_size = 8.
[2026-05-26 03:21:49] session_ids_buf_size = 8.
[2026-05-26 03:21:49] micro_batch_ids_buf_size = 8.
[2026-05-26 03:21:49] expert_ids_buf_size = 80.
[2026-05-26 03:21:49] layer_ids[0] is: 55
[2026-05-26 03:21:49] layer_ids[1] is: 55
[2026-05-26 03:21:49] session_ids[0] is: 0
[2026-05-26 03:21:49] session_ids[1] is: 1
[2026-05-26 03:21:49] micro_batch_ids[0] is: 0
[2026-05-26 03:21:49] micro_batch_ids[1] is: 0
[2026-05-26 03:21:49] expert_ids[0] is: 0
[2026-05-26 03:21:49] expert_ids[1] is: 1
[2026-05-26 03:21:49] expert_ids[2] is: 2
[2026-05-26 03:21:49] expert_ids[3] is: 3
[2026-05-26 03:21:49] expert_ids[4] is: 4
[2026-05-26 03:21:49] expert_ids[5] is: 5
[2026-05-26 03:21:49] expert_ids[6] is: 6
[2026-05-26 03:21:49] expert_ids[7] is: 7
[2026-05-26 03:21:49] expert_ids[8] is: 8
[2026-05-26 03:21:49] expert_ids[9] is: 9
[2026-05-26 03:21:49] expert_ids[10] is: 0
[2026-05-26 03:21:49] expert_ids[11] is: 1
[2026-05-26 03:21:49] expert_ids[12] is: 2
[2026-05-26 03:21:49] expert_ids[13] is: 3
[2026-05-26 03:21:49] expert_ids[14] is: 4
[2026-05-26 03:21:49] expert_ids[15] is: 5
[2026-05-26 03:21:49] expert_ids[16] is: 6
[2026-05-26 03:21:49] expert_ids[17] is: 7
[2026-05-26 03:21:49] expert_ids[18] is: 8
[2026-05-26 03:21:49] expert_ids[19] is: 9
[2026-05-26 03:21:50] run test_aclnn_ffn_worker_scheduler, execute samples success
[2026-05-26 03:21:50] Example completed successfully
```
<!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。-->
## 文档更新
不涉及
<!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。-->
## 类型标签
<!-- [x] 表示选中 -->
- [x]? Bug 修复
- [ ] ✨ 新特性
- [ ] ⚡ 性能优化
- [ ] ♻️ 重构
- [ ] 🧪 测试
- [ ] 📦 构建/CI
- [ ] 🔧 配置变更
- [ ] 📝 文档更新
- [ ] ⬆️ 依赖升级
- [ ] 🔒 安全修复
- [ ] 🧹 代码清理
- [ ] ❓ 其他,请描述:
See merge request: cann/ops-transformer!5918 | 7 天前 |