I installed tensorflow 1.0.1 GPU version on my Macbook Pro with GeForce GT 750M. Also installed CUDA 8.0.71 and cuDNN 5.1. I am running a tf code that works fine with non C
I had the same problem (Ubuntu 18.04). I was using:
tensorflow 2.1
cuda 10.1
cudnn 7.6.5
I solved it uninstalling cuda and its folder, and installing it via apt following the tensorflow page instructions:
https://www.tensorflow.org/install/gpu?hl=fr#ubuntu_1804_cuda_101