gmx_add_nvcc_flag_if_supported doesn't use correct host compiler
Summary
"Checking if nvcc accepts flags" fails for all flags on Ubuntu 21.10 where gcc-11 is the default with CUDA 11.1
GROMACS version
2021.1
Possible fixes
Adding -ccbin
to line 130 fixes the issue.