支持CUDA的设备 [英] CUDA-capable device

查看:478
本文介绍了支持CUDA的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对CUDA编程非常新。我将通过SDK附带的示例。我能够编译代码,但当我运行它,我得到以下错误:

I am very very new to CUDA programming. I am going through the examples that came with the SDK. I was able to compile the code, but when I run it, I get the following error:

clock.cu(177):CUDA运行时API错误38:未检测到支持CUDA的设备

我的机器上有GeForce 8400M GS,根据这个列表,它是一个CUDA支持的GPU: http://developer.nvidia.com/cuda-gpus

I have GeForce 8400M GS on my machine, and according to this list, it is a CUDA-supported GPU: http://developer.nvidia.com/cuda-gpus.

推荐答案

有几种方法可以检查以修复此错误:

There are several things you can check to fix that error:


  1. 确保您的 / dev / nvidia * 的权限是666
    crw-rw-rw - )和所有者root:root

  1. Make sure that your /dev/nvidia*'s permission is 666 (crw-rw-rw-) and owner root:root

如果您使用 sudo 安装SDK,则可能需要将
更改为root首先执行代码

If you installed the SDK using sudo, then you may need to change to root first to execute the code

确保您已在

Make sure you've installed the compatible NVIDIA's driver available in CUDA zone for your CUDA Toolkit

这篇关于支持CUDA的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆