Select Specific GPU for Zivid Software
This article demonstrates how to specify a computational device for Zivid Software. This is relevant if you have multiple GPUs and want to use a specific one. This can be one integrated GPU and one or more dedicated GPUs.
참고
Zivid의 GPU requirements 충족되는지 확인하세요. CPU 또는 AMD GPU를 사용하여 Zivid SDK를 실행하려는 경우, opt in to run the SDK with an unsupported compute device 을 확인하세요.
Specifying GPU is done by updating the Zivid Config file.
If the file already exists and it’s located in %LOCALAPPDATA%ZividAPI for Windows or "${XDG_CONFIG_HOME-$HOME/.config}"/Zivid/API for Ubuntu, skip ahead to editing the ComputeDevice parameters below.
파일이 존재하지 않는 경우:
Config.yml파일을 다운로드 합니다.config 파일에는 다음 정보가 포함되어 있습니다:
__version__: 4 Configuration: ComputeDevice: SelectionFilter: "" Type: GPU Vendor: Nvidia
config 파일을 다음 디렉터리에 배치합니다:
Windows
mkdir %LOCALAPPDATA%\Zivid\API move %HOMEPATH%\Downloads\Config.yml %LOCALAPPDATA%\Zivid\API\
Ubuntu
mkdir --parents "${XDG_CONFIG_HOME-$HOME/.config}"/Zivid/API mv ~/Downloads/Config.yml "${XDG_CONFIG_HOME-$HOME/.config}"/Zivid/API/
조심
기존의 모든 구성 파일이 덮어쓰여집니다.
조심
Zivid configuration 파일은 .yaml이 아닌 .yml 파일 확장자를 사용해야 합니다.
원하는 GPU(알려진 경우)를 config 파일의
ComputeDevice파라미터를 변경하여 할당됩니다.공급업체당 단일 GPU가 있는 경우(예: 통합 Intel GPU 및 전용 NVIDIA GPU)
TypeGPU로,VendorNVIDIA또는Intel로 변경합니다.ComputeDevice: SelectionFilter: "" Type: GPU Vendor: Nvidia
If you have multiple GPUs of the same vendor (e.g. two Nvidia GPUs),
SelectionFiltermust specify which GPU to use. Find the exact device name first: with the OpenCL version of the SDK, runclinfo -lto list all compute devices; with the CUDA version, runnvidia-smi -Linstead. LeaveTypeandVendorasAny, and setSelectionFilterto any unique part of the device name, e.g. for an NVIDIA GeForce RTX 3060:ComputeDevice: SelectionFilter: "RTX 3060" Type: Any Vendor: Any
변경 사항을 확인하려면 Zivid Studio를 다시 실행하고 Help → About Zivid Studio → System Info → Compute Device Info 로 이동하십시오. 선택한 장치는 Device info 에서 확인할 수 있습니다.
Version History
SDK |
Changes |
|---|---|
2.11.0 |
AMD는 더 이상 권장되지 않습니다. SDK에서 공식 지원이 중단되었습니다. 자세한 내용은 Enable Unsupported Compute Device for Zivid Software 를 참조하세요. CPU에서만 SDK를 실행하라는 지침이 제거되었습니다. |