On Fri, Apr 23, 2021 at 8:32 PM Barry Smith <bsmith@petsc.dev> wrote:

   ./configure other arguments LIBS="-lxxx" 


Ah yes. 
This was the first thing that I tried and it failed. I tried CUDALIBS or something that does not exist, to avoid adding my own "-Lyyy -lxxx". No luck so I added -L to FLAGS. That worked, but LIBS is the right place to put this.
 
  This should work. Send configure.log to petsc-maint@mcs.anl.gov



On Apr 23, 2021, at 6:33 PM, Mark Adams <mfadams@lbl.gov> wrote:

How would I add a CUDA library that is in the CUDA library directory? That is just add -lxxx to the link line. I tried LIBS=-lxxx and that failed in configure.
Mark