我正在使用Ubuntu20.04.1LTS (amd64)。看来Mesa20.3支持OpenCL1.2,所以注册kisak存储库,我试着安装Mesa20.3。
sudo add-apt-repository ppa: kisak / kisak-mesa
sudo apt update
sudo apt install mesa-opencl-icd我做了上面的事。
clinfo
Number of platforms 3
Platform Name Portable Computing Language
Platform Vendor The pocl project
Platform Version OpenCL 1.2 pocl 1.4, None + Asserts, LLVM 9.0.1, RELOC, SLEEF, DISTRO, POCL_DEBUG
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix POCL
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.0 AMD-APP (3212.0)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback
Platform Extensions function suffix AMD
Platform Name Clover
Platform Vendor Mesa
Platform Version OpenCL 1.1 Mesa 20.3.3 --kisak-mesa PPA
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd
Platform Extensions function suffix MESA如上所示,平台版本OpenCL 1.1Mesa20.3.3-Kisak-MesaPPA如你所见,Mesa的opencl的内容没有改变.
有人知道如何改变mesa-opencl的内容吗?
发布于 2021-09-08 19:07:34
我找到了一个线程,他们说原因是:
OpenCL仍然只将printf()宣传为printf(),目前还不支持。
修改环境变量可以覆盖以下问题:
CLOVER_PLATFORM_VERSION_OVERRIDE=1.2 CLOVER_DEVICE_VERSION_OVERRIDE=1.2 CLOVER_DEVICE_CLC_VERSION_OVERRIDE=1.2 clinfo发布于 2023-03-15 19:53:23
我对有一个问题,它不允许从Ubuntu20.04升级到22.04。对我来说,解决办法似乎是简单地运行:
sudo apt update
sudo apt install mesa-opencl-icd(我跳过了OP的PPA行,并且PPA没有出现在我的sources.list中。)
https://askubuntu.com/questions/1310733
复制相似问题