<div dir="ltr">Ah, CCFLAGS does not seem to work. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 4, 2021 at 3:07 PM Barry Smith <<a href="mailto:bsmith@petsc.dev">bsmith@petsc.dev</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
  You have to pass in the flag to turn off the bitching about -gpu to the C preprocessor, not the C compiler.<br>
<br>
<br>
stderr:<br>
nvc-Warning-The -gpu option has no effect unless a language-specific option to enable GPU code generation is used (e.g.: -acc, -mp=gpu, -stdpar, -cuda)<br>
Source:<br>
#include "confdefs.h"<br>
#include "conffix.h"<br>
#include <stdlib.h><br>
<br>
<br>
<br>
> On Nov 4, 2021, at 2:49 PM, Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br>
> <br>
> on Perlmutter with nvhpc:<br>
> <br>
>               Defined make macro "CPP" to "cc --use cpp32"<br>
> Preprocessing source:<br>
> #include "confdefs.h"<br>
> #include "conffix.h"<br>
> #include <stdlib.h><br>
> <br>
> Executing: cc --use cpp32  -I/tmp/petsc-jV9U1b/config.setCompilers  /tmp/petsc-jV9U1b/config.setCompilers/conftest.c<br>
> Possible ERROR while running preprocessor: exit code 1<br>
> stderr:<br>
> nvc-Error-Unknown switch: --use<br>
> Source:<br>
> <configure.log><br>
<br>
</blockquote></div>