Cuda kernel failed. Error: invalid device function
2015-06-17 10:07
489 查看
Cuda kernel failed. Error: invalid device function
出现这种错误是由于makefile.config中的问题,cuda计算能力设置错误(即-arch=sm_35)。#-gencode=arch=compute_35,code=sm_35 #-gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_52,code=compute_52 all: nvcc -O3 -m64 -arch=sm_35 -c bhsparse_cuda.cu -o bhsparse_cuda.o $(INCLUDES) nvcc -O3 -m64 -arch=sm_35 -c ref.cu -o ref.o $(INCLUDES) $(CC) -m64 -O3 main.cpp bhsparse.cpp bhsparse_cuda.o ref.o -o spgemm $(INCLUDES) $(LIBS)
需要根据GPU的计算能力设置其参数,不同GPU对应的计算能力如下图所示。
相关文章推荐
- macbook air电池保养方法
- GoldenGate过程 abend,报错OGG-00868 ORA-02396: Exceeded Maximum Idle Time, Please Connect Again
- Pentest Box Tools List of Tools contained in PentestBox
- BMap API(Baidu)与google.maps API(Google)
- 事件传递之响应链(Event Delivery: The Responder Chain)【转】
- Zencart 1.5.X – login does not work – session / cookie problem – explained
- TurboMail防黑客入侵邮件系统骗取货款
- RAC连接时的2种方式Connect Time Failver和taf
- LeetCode——Contains Duplicate II
- Filter Chain in J2EE : revise response header
- 分享百万皇后问题求解
- HDU 1151 Air Raid(最小路径覆盖)
- ACM-SG函数之Fibonacci again and again——hdu1848
- poj 1363 Rails 【栈】
- leetcode[70]:Climbing Stairs
- main thread starting…
- wait,waitpid,waitid————等待进程改变状态
- com.jcraft.jsch.JSchException: Algorithm negotiation fail
- Windows安装RaibbitMQ服务器
- opencv cvNamedWindow cvWaitKey()