Ubuntu 10.04 上的 OpenCL 安装
我有一个问题,我想要一个快速的解决方案......任何帮助都会受到赞赏。
我有一台配备 ubuntu10.04 和 Nvidia 8400M GS 显卡的笔记本电脑。我最近开始了一些关于 OpenCL 的工作,并想在我的笔记本电脑的 GPU 上运行它......但我在开始的那天遇到了很多问题。
我下载了在 Nvidia GPU 上运行 OpenCL 所需的最新驱动程序和 SDK。我已经安装了 1.NVIDIA-Linux-x86-260.19.36驱动
2.devdriver-3.2-linux-32-260.19.26驱动
3. cudatoolkit_3.2.16_linux_32_ubuntu10.04 CUDA工具包
4. gpucomputingsdk-3.2.16-linux GPU SDK
我设置了 PATH 和 LD_LIBRARY_PATH 变量,如 cuda 工具包安装过程后所示。之后,我进入 *NVIDIA_GPU_Computing_SDK/OpenCL* 目录并输入 sudo make (如给出的 此处)。但我收到错误
‘glXGetCurrentContext’ was not declared in this scope
,我不明白问题是什么。我是否错过了要安装的东西,或者 MakeFile 是否存在问题,我必须更改其中的一些选项?
另外,在此步骤之后,我应该如何使用它链接运行 OpenCL 程序代码?
提前致谢。
i have a problem to which i want a solution and fast....any help is appreciated.
I have a laptop with ubuntu10.04 and Nvidia 8400M GS graphics card. I recently started some work on OpenCL and wanted to run it on my laptop's GPU...but i ran into many problems the day I started.
I downloaded the latest drivers and sdk's needed for running OpenCL on an Nvidia GPU. I have installed
1. NVIDIA-Linux-x86-260.19.36 driver
2. devdriver-3.2-linux-32-260.19.26 driver
3. cudatoolkit_3.2.16_linux_32_ubuntu10.04 CUDA Toolkit
4. gpucomputingsdk-3.2.16-linux GPU SDK
I set the PATH and the LD_LIBRARY_PATH variables as was indicated after the installation process of the cuda toolkit. After that i went to the *NVIDIA_GPU_Computing_SDK/OpenCL* directory and typed sudo make (as was given here). But i get the error
‘glXGetCurrentContext’ was not declared in this scope
I can't understand what the problem is. Have I missed something to install or is there some problem with the MakeFile and I have to change some options in there?
Also after this step, how am I supposed to link run an OpenCL program code using this?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你安装了
libgl1-mesa-dev
吗?这些包提供此文件:
http://packages .ubuntu.com/search?searchon=contents&keywords=libgl.so&mode=exactfilename&suite=lucid&arch=any
Have you installed
libgl1-mesa-dev
?These packages provide this file:
http://packages.ubuntu.com/search?searchon=contents&keywords=libgl.so&mode=exactfilename&suite=lucid&arch=any
也许有些笨拙,但我只是在构建文件中静态链接到库和包含文件。现在至少有 3 种(Intel、AMD、NVIDIA)OpenCL 实现需要处理。
Perhaps kludgy, but I just static link in my build files to the libraries and includes. There are now at least 3 (Intel, AMD, NVIDIA) OpenCL implementations to juggle.