在没有ROOT特权的情况下在Linux上安装OpenCL(AMD SDK套件) [英] Install OpenCL(AMD SDK kit) on linux without ROOT privilege

查看:91
本文介绍了在没有ROOT特权的情况下在Linux上安装OpenCL(AMD SDK套件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Linux上安装OpenCL(AMD),但是我被困在最后一步(安装ICD)

I am trying to install OpenCL(AMD) on linux, but I am stuck on the last step(install ICD)

似乎要在/etc/OpenCL/vendor中安装ICD HAS ,但是我没有root权限可以访问计算机.

It seems like ICD HAS to be installed at /etc/OpenCL/vendor, but I don’t have root access to the computer.

是否有任何方法可以使OpenCL在不安装ICD的情况下工作? (或者也许通过环境变量来添加ICD文件的搜索路径?)

Is there any way to make OpenCL work without installing ICD? (or maybe through an environment variable to add search path for ICD files?)

当对ICD文件路径进行硬编码时,对于像我们这样的人来说确实很不方便.

It just seems really inconvenient for people like us when ICD file path is hardcoded.

推荐答案

将ICD文件放在/some/path/icd中,然后像这样导出路径:

Put the ICD-files in /some/path/icd and then export the path like so:

export OPENCL_VENDOR_PATH=/some/path/icd

它至少曾经在以前的版本中工作.如果他们更改了它,我会感到惊讶.

It used to work in previous versions at least. I would be surprised if they changed it.

这篇关于在没有ROOT特权的情况下在Linux上安装OpenCL(AMD SDK套件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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