GPU 的要求
使用 Zivid 需要 GPU 支持 CUDA(12 或更高版本)或 OpenCL 驱动程序(1.2 或更高版本)。
对于 Linux,请根据所用后端安装相应的 GPU 驱动程序:安装 NVIDIA 驱动程序(CUDA 后端)请参阅 关于 GPU ,或安装 OpenCL 驱动程序 。
请按照说明 检查是否已安装 OpenCL 。对于 CUDA 后端,请检查 nvidia-smi 报告的 NVIDIA 驱动程序是否支持 CUDA 12 或更高版本。
Dedicated GPU
独立 GPU 能使 Zivid 获得最佳性能。如果 GPU 不仅用于 Zivid 的运算,独立 GPU 也是最佳选择。为获得最佳性能,需要至少具有 3 GB 内存的中高端 NVIDIA GPU。这是 Zivid 的首选解决方案。
要求:
NVIDIA GPUs must meet a minimum compute capability, which differs between the two compute backends:
CUDA backend: compute capability 6.1 or higher. This covers the GTX 10-series and everything newer, so cards from 2016 onwards. The exception lists the compute capabilities the installed package was built for:
Detected compute capability X.Y, which is not supported. Supported versions: (6.1, 7.0, 7.5, 8.0, 8.6)
Setting
AllowUnsupporteddoes not make the CUDA backend work below this minimum. The packages contain no code for older architectures, so the capture fails later instead. Use a newer GPU, or the OpenCL version of the SDK.OpenCL backend: no practical limit. The requirement is OpenCL 1.2 support, which every NVIDIA card new enough to have an OpenCL driver provides. A compute capability floor of 3.5 exists in the SDK, but no driver that meets the OpenCL requirement falls below it, so in practice the OpenCL version covers the full range of NVIDIA cards:
The compute capability X.Y of the Nvidia compute device is lower than the minimum required compute capability 3.5. Update to a supported compute device by consulting <link>.
A GPU below 6.1 therefore works with the OpenCL backend but not with the CUDA backend. Be aware that the OpenCL version of the SDK rejects every NVIDIA GPU regardless of compute capability until you opt in to unsupported compute devices in the Config.yml file. The 3.5 minimum applies only once that opt-in is in place.
On Jetson the CUDA package is built for the compute capability of the Jetson hardware itself, so this minimum does not apply, and the OpenCL version is not available. See 在 Jetson Linux 上安装 Zivid.
可以在https://developer.nvidia.com/cuda-gpus中找到NVIDIA GPU 及其相应计算能力的概述。
建议:
NVIDIA GeForce GTX 1060 or newer for desktops
NVIDIA GeForce MX150 or newer for laptops
小心
自 SDK 2.10 起,移除了对 Ubuntu 18.04 的支持。如需查看早期 SDK 版本的 Ubuntu 18.04 说明,请更改左上角的知识库版本。
CPU with integrated GPU
对 Zivid 而言,这是最经济高效的解决方案。集成 GPU 的优势是 GPU 向 CPU 传输数据的速度非常快。它对于需要低功耗的应用(例如电池供电的移动平台)也十分有利。为获得最佳性能,需要至少具有 3 GB 可用内存的高端集成 GPU。
建议:
Intel i7 with HD630 或更好
小心
自 SDK 2.10 起,移除了对 Ubuntu 18.04 的支持。如需查看早期 SDK 版本的 Ubuntu 18.04 说明,请更改左上角的知识库版本。
小技巧
可使用搭载了集成 GPU 的 CPU 用于需要低功耗的应用环境,例如搭载了相机的电池供电的移动平台。
版本历史
SDK |
变更 |
|---|---|
2.18.0 |
新增对 NVIDIA GPU 的 CUDA 计算后端的支持。 |
2.11.0 |
不再推荐使用 AMD。 SDK 中已移除官方支持,请参阅 为 Zivid 软件启用不支持的计算设备 。 |
2.10.0 |
移除了对 Ubuntu 18.04 的支持。 |