CUDA中编译时显示helper_functions.h:No such file的解决办法
来源:互联网 发布:linux可执行文件结构 编辑:程序博客网 时间:2024/06/14 11:17
看到网上不少人说自己在CUDA编程时会遇到这样一个问题,对拷贝过来的.cu文件执行nvcc命令时会显示error helper_functions.h:No such file的错误。困难的是连helper_functions.h这个头文件在哪都不知道。
这个问题其实很好解决,我以最简明扼要的文字来给出一个解决方案:
1.首先,改正直接用nvcc命令编译程序的习惯,换成makefile。
2.检查自己cuda-7.5/samples/common/inc(具体版本自己调),是不是发现了惊喜?没错,一系列的helper头文件都在这里
3.下一步就很简单了,进入Makefile,修改INCLUDES后的目录,加上inc这个文件夹
4.然后make即可
0 0
- CUDA中编译时显示helper_functions.h:No such file的解决办法
- cocos2d-x-2.2中编译cocos2d-win32.vc2010 C1083 pthread.h No such file or director错误的解决办法
- pro*c/c++编译错误 ” error: sqlca.h: No such file or directory “ 的解决办法
- stdint.h: No such file or directory的解决办法
- mingw中编译库出现sys/times.h: No such file or directory的可行解决方法
- 编译错误:ltdl.h: no such file
- Ubuntu下QT程序中编译时出现speex/speex.h: No such file or directory
- cocos2d-x-2.2中编译cocos2d-win32.vc2010.sln出现:C1083 pthread.h No such file or director错误的解决办法
- 在Linux下生成GUID的程序,及编译错误 “uuid/uuid.h: No such file or directory” 的解决办法。
- 在Linux下生成GUID的程序,及编译错误 “uuid/uuid.h: No such file or directory” 的解决办法。
- Linux中编译文件时提示:arm-elf-gcc: leds.o : No such file or directory 错误的解决办法
- make时出现txc_dxtn.h:28:19: fatal error: GL/gl.h: No such file or directory的解决办法
- 【Note2】用keil对工程编译时,工程中已经包含的文件会报错:cannot open source input file usb_conf.h No such file or directory
- LiteIDE编译GOLANG项目报错ltdl.h: No such file or directory解决办法
- Edison编译时显示No such file or directory
- Ubuntu QT里编译显示 uuid.h no such file or directory
- Cannot open include file: 'vtkPolyDataMapper.h': No such file or directory 之类的解决办法
- 一种编译错误的解决办法。/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
- HTTP长连接与短连接
- 有n个整数,使其前面各数顺序向后移m个位置,最后m个数变成最前面的m个数
- CSS 4.6 样式-表格
- 洛谷P3374模板线段树1
- C# 复习总结
- CUDA中编译时显示helper_functions.h:No such file的解决办法
- 学习安排
- Linux内核中的软中断、tasklet和工作队列详解
- 大话设计模式(Python版)--装饰器模式
- poj3020 Antenna Placement(无向图最小边覆盖)
- 10-接口
- selenium异常:org.openqa.selenium.remote.UnreachableBrowserException
- Struts2 异常There is no Action mapped for namespace [/] and action name [auth] associated with context
- CSS 4.7 样式-轮廓