CUDA host compiler check is not retriggered - Redmine #2583
The check that is meant to detect whether the nvcc + host compiler combination work correctly seems to not get rerun after conditions change that should otherwise trigger a re-check considering the line source:cmake/gmxManageGPU.cmake#L272.
$ cmake ../ -DGMX_FFT_LIBRARY=fftpack [...] -- Check for working NVCC/C compiler combination -- Check for working NVCC/C compiler combination - works [...] $ cmake ../ -DGMX_FFT_LIBRARY=fftpack -DCUDA_HOST_COMPILER=foo -- Configuring done -- Generating done
Clearly, the second cmake invocation should have resulted in a rerun of the check and a failure.
(from redmine: issue id 2583, created on 2018-07-23 by pszilard, closed on 2018-08-13)
- relates #1616 (closed)
- Revision 5a8efa7b by Szilárd Páll on 2018-07-30T11:12:25Z:
Fix nvcc host compiler check triggering The nvcc host compiler check conditional triggering on the change of the host compiler binary has not been functional as the check has been placed after another gmx_check_if_changed() call on the same variable. This change moves the code that checks the functioning of nvcc and host compiler to gmxManageNvccConf and refactors the conditionals to reuse the result of the previously issues check if changed call. Fixes #2583 Change-Id: I26586aaec394cce93a05774cb4184b3928b560cb