Ubuntu 10.04 上的 OpenCL 安装

发布于 2024-10-16 12:55:33 字数 896 浏览 3 评论 0原文

我有一个问题,我想要一个快速的解决方案......任何帮助都会受到赞赏。

我有一台配备 ubuntu10.04Nvidia 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

束缚m 2024-10-23 12:55:33

也许有些笨拙,但我只是在构建文件中静态链接到库和包含文件。现在至少有 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文