nixpkgs/pkgs/by-name/po/pocl/setup-hook.sh
qbisi 072302cf6b pocl: add setupHook to specifies directory to scan for ICDs
Adds a setup hook that sets the OCL_ICD_VENDORS environment variable
to point to a directory containing ICD (Installable Client Driver) files.

These files define the available OpenCL backends, allowing other OpenCL
applications to detect and use the appropriate drivers in sandbox environment.
2025-04-21 09:27:34 +05:30

7 lines
150 B
Bash

preCheckHooks+=('setupPoclCheck')
preInstallCheckHooks+=('setupPoclCheck')
setupPoclCheck () {
export OCL_ICD_VENDORS="@out@/etc/OpenCL/vendors"
}