Using Tesla P100 as Compute Device
I'm using Blender 2.79b rendering on the same GPU but in Google Colab, I force using GPU with a Python script.
I had some difficulties but I found that Google put some restriction on the GPU. I just had to remove libtcmalloc-minimal4 package and reinstall it from Ubuntu repositories and now every thing is okay. Something like
    sudo apt-get remove libtcmalloc-minimal4
    sudo apt-get update
    sudo apt-get install libtcmalloc-minimal4