OpenCL error when clGetPlatformIDs on Linux

I am having an issue when running OpenCL program on Linux. Program always fail at very beginning getting the platform information through clGetPlatformIDs function. And here is the dsmeg:

nvidia 0000:02:00.0: irq 111 for MSI/MSI-X
NVRM: RmInitAdapter failed! (0x25:0x1c:1379)
NVRM: rm_init_adapter failed for device bearing minor number 0
NVRM: nvidia_frontend_open: minor 0, module->open() failed, error -5

And the system could not even get GPU information:

Model: Tesla K40m
IRQ: 111
GPU UUID: GPU-???-???-???-???-???
Video BIOS: ??.??.??.??.??
Bus Type: PCIe
DMA Size: 40 bits
DMA Mask: 0xffffffffff
Bus Location: 0000:02:00.0

It is a Tesla K40m and I did install the latest drive
Any help will be appreciated!

The driver is not happy. There are any number of possibilities at this point.

Does the K40m have the aux power connections properly installed?

Were there any drivers installed on the machine before you installed the 352.79 driver?

Did you remove the nouveau driver from your system?

Thank you for the reply! It turns out a power cores connection issue.
Running nvidia-smi -q got the error message.