I’m running Fedora 29 kernel-4.18.x and tried several nvidia drivers, but neither drivers 410.xx nor 415.13 provides OpenCL capability, although graphics works fine. So the latest working OpenCL library is with NVIDIA-Linux-x86_64-396.54.run. My graphics cards are GeForce 1070 and 750ti.
Nope. 410.xx doesn’t provide OpenCL for kernel 4.18.x. I saw some people use OpenCL with 410.xx, but they are running ubuntu 18 or 16 with kernel 4.15.x or older. nvidia 410.xx, 415.13 compile and work with kernel 4.18.x for graphics, but not for OpenCL. The OpenCL application crashes.
It has turned out the parameters of my application must be changed for nvidia driver 410.xx or later. My system itself was correct. I should have noticed earlier.