芥子书屋

关注

cuda项目出错,no kernel image is available for execution on the device

芥子书屋

关注

阅读 64

2022-07-14


 解决方案

SET(CUDA_NVCC_FLAGS -gencode arch=compute_61,code=sm_61;-G;-g)

设置arch和code与电脑的显卡匹配,就可以解决。

 

更多《计算机视觉与图形学》知识,可关注下方公众号:

cuda项目出错,no kernel image is available for execution on the device_解决方案

相关推荐

金刚豆

RuntimeError: CUDA error: no kernel image is available for execution on the device

金刚豆 80 0 0

数数扁桃

caffe-ssd:no kernel image is available for execution on the device

数数扁桃 65 0 0

年夜雪

RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is Fal

年夜雪 373 0 0

杰森wang

kernel uImage Image

杰森wang 58 0 0

九点韶留学

RuntimeError: expected device cuda:0 and dtype Float but got device cuda:0 and dtype Half

九点韶留学 91 0 0

新鲜小饼干

RuntimeError: expected device cuda:0 and dtype Byte but got device cuda:0 and dtype Bool

新鲜小饼干 157 0 0

捌柒陆壹

vscode中调试cuda kernel

捌柒陆壹 17 0 0

干自闭

torch._C._cuda_setDevice(device)

干自闭 35 0 0

春意暖洋洋

异常解决(一)-- RuntimeError: expected device cpu but got device cuda:0

春意暖洋洋 143 0 0

思考的鸿毛

RuntimeError: Expected object of device type cuda but got device type cpu for argument ……

思考的鸿毛 83 0 0

精彩评论(0)

0 0 举报