CUDA C-从cutil.h到helper_CUDA.h的库错误
CUDA C - library error from cutil.h to helper_cuda.h
我有一个在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
我的建议:
- 在CUDA 5.0安装程序上加载CUDA 4.0 SDK
- 使用CUDA 5工具包(nvcc等)构建CUDA 4.0 SDK
- 现在包括相同的头文件和针对相同库的链接(您刚刚构建的),这些库对应于CUDA 4.0 SDK中的
cutil
排列
helper_cuda.h
并不是您所发现的cutil.h
的替代品。很可能,如果您解决了这个fstream
问题,您可能会遇到另一个问题,这取决于您实际使用的cutil
项目中的哪些组件。
相关文章:
- cuda-gdb 给出错误"warning: Cuda API error detected: cudaLaunchKernel returned (0x7)"
- CUDA返回值错误35的含义是什么
- 链接器错误-在ubuntu中找不到CMake和Cuda 10.1的lcudart
- 在尝试使用CUDA分配内存时,我遇到了访问冲突写入位置错误
- Cuda 编译错误:已定义类模板
- 致命错误:cuda.h:没有用于 c++ 的此类文件或目录
- NPP 和 CUDA 错误检查
- CUDA 错误:"dynamic initialization is not supported for __device__, __constant__ and __shared__ variabl
- cuda错误Cudart卸载(错误29)由于"driver shutting down"
- CUDA错误-虚拟函数,继承,NEW运算符
- 收到 CUDA 错误"声明与以前的"variable_name"不兼容
- C++类和 CUDA 错误
- CUDA错误:共享数据太多(0x4018字节,最大0x4000):额外的0x18字节从哪里来
- CUDA 错误 C2059:语法错误:'<'
- 处理大输入时CUDA错误
- 构造函数调用时出现GLM cuda错误
- Cuda错误,在devicesync和cudamemcopy中引用了非法内存
- CUDA 错误:'void'之前的预期构造函数、析构函数或类型转换
- Cuda错误:意外启动失败
- 字符串匹配 GPU CUDA 错误