【发布时间】:2012-04-12 19:16:28
【问题描述】:
我收到以下错误:
error: calling a host function("strcpy") from a __device__/__global__ function("doDecompression") is not allowed
error: calling a host function("strlen") from a __device__/__global__ function("doDecompression") is not allowed
error: calling a host function("strlen") from a __device__/__global__ function("doDecompression") is not allowed
这是真的还是我的编译器表现得好笑??
【问题讨论】:
-
CUDA 标准库记录在 CUDA 编程指南的附录中。您所看到的正是所支持的。不支持的内容不存在。
/ 中定义的所有函数都属于后者。