OpenCL 在 Colab 中未检测到 T4 硬件加速器。

huangapple go评论75阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年5月26日 08:30:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/76336964.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定