1
运行时
求助:示例程序bug
2022-05-06 14:09:03
69

/public/home/acl4kd6owi/hip_test/first_test.cpp:38:33: error: expected expression
add<<<gridsize, blocksize >>> (d_A, d_B, d_C);
^
/public/home/acl4kd6owi/hip_test/first_test.cpp:38:36: warning: expression result unused [-Wunused-value]
add<<<gridsize, blocksize >>> (d_A, d_B, d_C);

在超算平台运行向量加法的程序,有这样一个bug是怎么回事?哪位大佬知道怎么处理么?

算法代码在下面链接里面

https://developer.hpccube.com/gitbook//dcu_developer/DeveloperGuide/dcu_programming/DCU_programming_chapter3_1.html

全部评论(1)
只看楼主
T
tianlh
1楼

您好,示例代码是基于dtk21.04及以后的版本,请运行代码前加载对应的dtk版本,建议使用最新版,module switch compiler/rocm/dtk-21.10.1。链接中相应的版本环境说明后续会补充上,谢谢反馈。

2022/5/7
没有更多内容了
--
楼主
Level.1
0 帖子
楼主热帖
暂无数据