I have built PyTorch v1.4.0 locally and I am trying the C++ frontend.
I am seeing that the CPP API - torch::cuda::is_available() returns false.
With the following snippet:
#include <torch/torch.h>

int main() 
{
    torch::Tensor a = torch::ones({ 2, 2 }, torch::requires_grad());
    torch::Tensor b = torch::randn({ 2, 2 });
    a.to(torch::kCUDA);    
    b.to(torch::kCUDA);   
    auto c = a + b;
}

I saw the complaint:
 what():  CUDA error: CUDA driver version is insufficient for CUDA runtime version
However in python I don’t see any such issue:
>>> torch.cuda.is_available()
True
>>> a = torch.tensor([1., 2.], device="cuda")
>>> a
tensor([1., 2.], device='cuda:0')


What could be wrong here?