NVCC failing compilation on lassen with XL host compilers
This was reported by Ruipeng Li li50@llnl.gov when working with me on the HYPRE-GPU interface.
In short: nvcc
compilation is tested before host compiler flags are tested. In the case of XL compilers, PETSc configure adds -+
to the C++ compiler flags, which then gets added to nvcc
flags with makefile rules.
CUDA underlying compiler flags: CUDA_CXXFLAGS -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -g3 -O0 -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -g -O0 -+
This causes compilation errors (nvcc complaining about multiple -x
specified at command line) when compiling CUDA library code although configure finishes fine. configure.log.saved
We have lost the specific error, but it can be regenerated if needed.
Anyway, this goes beyond the specific -+
issue, as we need a way to test the entire set of flags for nvcc
.
Edited by Stefano Zampini