[petsc-users] Adding a CUDA library

Mark Adams mfadams at lbl.gov
Sat Apr 24 06:54:53 CDT 2021


On Fri, Apr 23, 2021 at 8:32 PM Barry Smith <bsmith at 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 at mcs.anl.gov
>
>
>
> On Apr 23, 2021, at 6:33 PM, Mark Adams <mfadams at 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20210424/905581f2/attachment.html>


More information about the petsc-users mailing list