Add/update build to use CUDA 12
We are having reports in Spack of users complaining of building errors with CUDA 12 as shown in https://github.com/spack/spack/pull/38697#issuecomment-1624443902.
We are having reports in Spack of users complaining of building errors with CUDA 12 as shown in https://github.com/spack/spack/pull/38697#issuecomment-1624443902.