Tuesday, September 4, 2018

clGetPlatformIDs(): CL_PLATFORM_NOT_FOUND_KHR in chroot

memo

* First search for opencl_runtime_16.1.2_x64_rh_6.4.0.37.tgz in obsolated Intel drivers. The newer version didn't worked.
* Then sh NVIDIA-Linux-x86_64-361.45.11-no-compat32.run --no-x-check --no-kernel-module-source --no-kernel-module -N  This installs file here /etc/OpenCL/vendors and relative path didn't work, so I changed to full: /usr/lib64/libnvidia-opencl.so.1 (no '\n' at the end)
* rm /etc/alternatives/opencl-libOpenCL.so*
* run nvidia-cuda-mps-control -d (without chroot?) to have a fresh ~/.nv/ cache
* clinfo now shows two devices
* hashcat now benchmarks with two devices turn on with -D1,2
* but warning nvmlDeviceGetCurrPcieLinkWidth(): Not Supported etc shows and this brakes on a real task.
* hashcat complains about Outdated or broken NVIDIA driver detected! time to update driver.