fix compilation without CUDA