GPU execution requested, but not compiled with GPU support

I am trying to install PyTorch bindings for Warp-ctc(https://github.com/SeanNaren/warp-ctc).
I have installed it successfully, but when I use it in my program, I got this:

GPU execution requested, but not compiled with GPU support

I have tried it several times but I still got this problem.

Then I found this piece of code in warp-ctc:

#ifdef CUDACC

return ctc.score_forward(activations, costs, flat_labels,
label_lengths, input_lengths);
#else
std::cerr << “GPU execution requested, but not compiled with GPU support” << std::endl;
return CTC_STATUS_EXECUTION_FAILED;
#endif

I have searched the solutions for a whole day.
Is anyone can help?

Do you have a GPU on your machine? Does pytorch recognize it? (torch.cuda.is_available())