When configuring Kokkos-Kernels with nvcc, need to set -ccbin
Otherwise, nvcc uses the default gcc on PATH, which might be too old and cause nvcc error out.
This happens on Polaris with cuda-12.4.1. Configure is checking KK's headers, but the gcc on PATH is gcc-7.5. We should use -ccbin CC
, where CC is gcc-12.3.
Edited by Junchao Zhang