我在CUDA 4.0上开发了一个用C开发的项目。现在我尝试在CUDA 5.0上编译它,但我有一些cutil.h的问题,我已经将cutil更改为helper_cuda.h并且我总是收到此错误:
In file included from /path/to/helper_cuda.h:24
和
/path/to/helper_string.h:18: fatal error: fstream: No such file or directory
fstream是一个C ++库,如何在没有此错误的情况下编译它?
对不起我的英文:D
答案 0 :(得分:1)
我的建议:
cutil
排列相对应的相同库(您刚刚构建的)。 helper_cuda.h
不是cutil.h
的替代品。很可能,如果您解决了这个fstream
问题,您可能会遇到另一个问题,具体取决于您实际使用的cutil
项目中的组件。