OpenCL clGetPlatformIDs错误-1001 [英] Opencl clGetPlatformIDs error -1001

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

问题描述

我正在尝试运行一些OpenCL程序. 我有NVidia显卡(GeForce 6600).

I am trying to run some OpenCL programs. I have a NVidia graphics card (GeForce 6600).

但是,当我执行程序时出现错误: 无法获得平台-1001

But , when I execute my program and I get a error : Unable to get platforms -1001

我的操作系统是ArchLinux,我已经安装了以下软件包( 来自pacman): 1. libcl 2. opencl-headers 3. opencl-nvidia-304xx 4. lib32-opencl-nvidia-304xx

My OS is ArchLinux and I already install the following packages ( from pacman ): 1. libcl 2. opencl-headers 3. opencl-nvidia-304xx 4. lib32-opencl-nvidia-304xx

如何在我的环境中解决此问题? 或需要安装哪些必要的软件包?

How to fix this problem in my environment? or what necessary packages need to install?

谢谢.

推荐答案

OpenCL-error -1001 "CL_PLATFORM_NOT_FOUND_KHR"不一定意味着您没有任何支持OpenCL的设备.这意味着cl_khr_icd-extention在加载正确的供应商驱动程序时遇到麻烦.
尝试以根用户身份运行您的OpenCL程序.或尝试使用clIcdGetPlatformIDsKHR. 如果未运行X11,则需要手动或通过脚本创建设备文件

OpenCL-error -1001 "CL_PLATFORM_NOT_FOUND_KHR" doesn't necessarily mean you don't have any OpenCL-capable device. This means, that cl_khr_icd-extention have a trouble to load the proper vendor driver.
Try to run your OpenCL-program(s) as root. Or try to use clIcdGetPlatformIDsKHR. If you not running X11, you need to create device files manually or by script

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

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