clGetPlatformIDs调用中出现错误-1001! [英] Error -1001 in clGetPlatformIDs Call !

查看:127
本文介绍了clGetPlatformIDs调用中出现错误-1001!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开始使用OpenCL.我有两个NVidia图形卡,我安装了开发人员驱动程序"以及NVidia网站上的SDK.我编译了演示,但是当我运行时

I am trying to start working with OpenCL. I have two NVidia graphics card, I installed "developer driver" as well as SDK from NVidia website. I compiled the demos but when I run

./oclDeviceQuery

./oclDeviceQuery

我知道了

OpenCL软件信息:

OpenCL SW Info:

clGetPlatformIDs调用中出现错误-1001 !!!

Error -1001 in clGetPlatformIDs Call !!!

我该如何解决?这是否意味着我的nvidia卡无法被检测到?我正在运行Ubuntu 10.10,并且X服务器可以与nvidia驱动程序一起正常使用.

How can I fix it? Does it mean my nvidia cards cannot be detected? I am running Ubuntu 10.10 and X server works properly with nvidia driver.

我很确定问题与文件权限无关,因为它也不适用于sudo.

I am pretty sure the problem is not related to file permissions as it doesn't work with sudo either.

推荐答案

对于我来说,我已经通过安装ubuntu中提供的 nvidia-modprobe 软件包(utopic/multiverse)解决了该问题.并且驱动程序本身(v346)是从
https://launchpad.net/安装的〜mamarley/+ archive/ubuntu/nvidia

具体来说,我已经安装了nvidia-opencl-icd-346,nvidia-libopencl1-346,nvidia-346-uvm,nvidia-346和libcuda1-346.不确定OpenCL是否全部需要它们.

In my case I have solved it by installing nvidia-modprobe package available in ubuntu (utopic/multiverse). And the driver itself (v346) was installed from
https://launchpad.net/~mamarley/+archive/ubuntu/nvidia

Concretely, I have installed nvidia-opencl-icd-346, nvidia-libopencl1-346, nvidia-346-uvm, nvidia-346 and libcuda1-346. Not sure if they are all needed for OpenCL.

这篇关于clGetPlatformIDs调用中出现错误-1001!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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