116.10. clinfo-3.1.26.09.26
Prints every property of every OpenCL platform and device
3.1.26.09.26-1 · CC0-1.0 · 0.1 SBU · 204.0 KiB, 4 files · 41_system, 603 of 1047 · ports/core/gpu/clinfo
Homepage: https://github.com/Oblomov/clinfo
clinfo lists every OpenCL platform the ICD loader finds and every property of every device on it. kinfocenter runs it at run time for its OpenCL page, which is empty without it. It links libOpenCL from ocl-icd and compiles against the headers of opencl-headers.
Depends on: opencl-headers, ocl-icd.
Required by (1): kinfocenter.
Sources: clinfo-3.1.26.09.26.tar.gz (66.5 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install clinfo'
build.sh:
make
make PREFIX=/usr MANDIR=/usr/share/man DESTDIR=$PKG install
install -Dm644 legalcode.txt $PKG/usr/share/licenses/$name/legalcode.txt
Programs: clinfo.
Directories: /usr/share/licenses/clinfo.
The Makefile puts -g -pedantic -Werror into CFLAGS only when CFLAGS is unset, and the tree always exports it, so the build takes the release flags and no debug information. MANDIR is named on the install line because upstream’s default, $(PREFIX)/man, is not where man looks; the page goes to /usr/share/man/man1. Upstream installs the program 0555 and the page 0444, modes the package lint accepts.
LICENSE is a CC0 waiver that refers to the full legal code in legalcode.txt; kpkg copies only files whose names begin with LICENSE, so build.sh installs legalcode.txt beside it.