4
2
运行时
调用rocthrust 报错#include <cuda_runtime_api.h>file not found
2022-03-11 15:43:12
85

原始代码CUDA使用转码工具进行转码后进行调试,出现如下错误

/public/software/compiler/rocm/rocm-4.1.0/rocthrust/include/thrust/system/cuda/detail/guarded_cuda_runtime_api.h:38:10: fatal error: 'cuda_runtime_api.h' file not found
#include <cuda_runtime_api.h>
~~~~~~~~~~~~~~~~
56 warnings and 1 error generated.

全部评论(1)
只看楼主
A
aiss
1楼

使用转码工具后,需要手工修正一部分错误。请确认下是不是这个路径转码错了,目前看调用到cuda下 了。/public/software/compiler/rocm/rocm-4.1.0/rocthrust/include/thrust/system/cuda/ 同级目录下有hip文件夹

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