List OpenCL platforms and devices in JSON. Build git clone https://github.com/mkohlhaas/lscl.git cmake -S lscl -B build -G Ninja cmake --build build/ Usage with jq lscl | jq