Fixed build in absence of cuda.