Check CUDA availability code-side