英文:
Opencl not detecting T4 hardware accelerator in colab
问题
我在Colab中使用笔记本电脑,开始出现以下错误消息:
LogicError: clGetPlatformIDs failed: PLATFORM_NOT_FOUND_KHR
我的代码使用PyRQA包,该包使用opencl进行计算。几周前它还能正常运行,但现在一直显示这个错误。
以下命令:
!clinfo
返回如下信息:
Number of platforms 0
看起来opencl没有检测到T4硬件加速,尽管在运行时已经设置了。
英文:
I use a notebook in colab and I started to get the following error message:
LogicError: clGetPlatformIDs failed: PLATFORM_NOT_FOUND_KHR
My code uses PyRQA package, which uses opencl to perform calculations.
It was running without any issue a few weeks ago, but now it keeps showing the error.
The command
!clinfo
returns the following:
Number of platforms 0
It looks like the opencl is not detecting the T4 hardware acceleration, even though it's set in the runtime.
答案1
得分: 3
他们在最新的更新中不知何故从驱动程序中移除了OpenCL运行时。
但是你拥有sudo权限,所以你可以修复驱动程序的安装。在执行类似以下命令之后:
!sudo apt update
!sudo apt purge *nvidia* -y
!sudo apt install nvidia-driver-530 -y
它会再次正常工作。
英文:
They somehow removed the OpenCL runtime from drivers in the last update.
But you have sudo permissions, so you can fix the driver installation. After something like
!sudo apt update
!sudo apt purge *nvidia* -y
!sudo apt install nvidia-driver-530 -y
it works again.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论