jamriska / ebsynth

Fast Example-based Image Synthesis and Style Transfer
https://ebsynth.com
1.5k stars 194 forks source link

error: the cuda backend is not available! #28

Open SolomonIxanSmith opened 3 years ago

SolomonIxanSmith commented 3 years ago

I installed ebsynth and the cuda toolkit. Right now it gives me the error above when I try to set the backend to CUDA. Anyone have any luck getting around this? I had to change the nvcc compiler options to compute_52 instead of compute_30 as others have pointed out but compilation worked and gave no errors. Is there a version of CUDA that I should be using? Should I even bother or is the performance increase not worth it?

Ubuntu 21.04 GTX 970 Installed version of cuda is: cuda_11.2.r11.2

foobarhe commented 1 year ago

You can refer the link to set the correct -arch: https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/.

Should I even bother or is the performance increase not worth it?

yes, when enable cuda, the performance improves a lot.