fixed "unused function" in case of unavailable CUDA