v2022.1 build fails using GCC 7
Summary
Building v2022.1 using gcc-7 with, e.g. -DGMX_CUDA_TARGET_SM=70 -DGMX_CUDA_TARGET_COMPUTE=70
, cmake fails with
build_2022.1.log:-- Checking if nvcc accepts flags -gencode;arch=compute_70,code=sm_70 – Failed
The same works fine for v2022.
Looks this is down to the change
commit adfaeb8787096429101525b4c75f9500b4300424
Author: Paul Bauer paul.bauer.q@gmail.com
Date: Fri Apr 8 10:24:40 2022 +0000
Fix nvcc flag detection for gcc-11
Used the wrong host compiler before.
Fixes #4415
For developers: Why is this important?
GROMACS should build without error, or fail elegantly if dependencies are not met.
Edited by Alan Gray