<div dir="ltr">But I can get rid of that with: cc -E -mp-gpu <div>I expect that is what they will say.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 4, 2021 at 1:40 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</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">I think we went through this issue before.<br>
<br>
nvc is the 'c' compiler. And for some reason its giving 'cuda' warnings.<br>
<br>
I think you might have switched progenv last time [and avoided this compiler]<br>
<br>
You can try using this compiler manually - on simple code - and then seek help from the admins on how to avoid these warnings..<br>
<br>
Satish<br>
<br>
- create test.c with:<br>
<br>
#include <stdlib.h><br>
<br>
compile (or preporcess):<br>
<br>
cc -E  test.c<br>
<br>
- You should get:<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>
<br>
Now provide this info to the machine admins [or nvidia folk] - and ask how to get rid of this message.<br>
<br>
Satish<br>
<br>
<br>
On Thu, 4 Nov 2021, Mark Adams wrote:<br>
<br>
> Correction it is nvc:<br>
> <br>
> nvc-Warning-The -gpu option has no effect unless a language-specific option<br>
> to enable GPU code generation is used (e.g.: -acc, -mp=gpu, -stdpar, -cuda)<br>
> <br>
> And I add  -mp=gpu to CUDAFLAGS<br>
> <br>
> <br>
> On Thu, Nov 4, 2021 at 1:09 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> <br>
> ><br>
> > On Thu, 4 Nov 2021, Mark Adams wrote:<br>
> ><br>
> > > Does anyone know if PETSc calls nvcc and hence can add flags to the<br>
> > > invocation? nvcc wants a flag like -mp=gpu but I don't know if we do that<br>
> > > or a compiler wrapper in the environment.<br>
> ><br>
> > $ ./configure --help |grep CUDA<br>
> > <snip><br>
> >   --CUDAC=<prog><br>
> >        Specify the CUDA compiler<br>
> >   --CUDAFLAGS=<string><br>
> >        Specify the CUDA compiler options<br>
> > <snip><br>
> ><br>
> > Satish<br>
> ><br>
> <br>
<br>
</blockquote></div>