NVIDIA-SMI throwing error

Hi
I am trying to install nvidia-smi on Centos 7 docker image. I tried with multiple version but its the same, I want to use CUDA, and when using cuda sample code I get error E: Device warp size not supported.

nvidia-smi error Failed to initialize NVML: Unknown Error

Can someone help