[petsc-dev] sm_70
Mark Adams
mfadams at lbl.gov
Fri Sep 25 17:49:08 CDT 2020
'--CUDAFLAGS=-arch=sm_70',
seems to fix this.
On Fri, Sep 25, 2020 at 6:31 PM Mark Adams <mfadams at lbl.gov> wrote:
> I see kokkos and hyper have a sm_70 flag, but I don't see one for PETSc.
>
> It looks like you have to specify this to get modern atomics to work in
> Cuda. I get:
>
> /ccs/home/adams/petsc/include/petscaijdevice.h(99): error: no instance of
> overloaded function "atomicAdd" matches the argument list
> argument types are: (double *, double)
>
> I tried using a Kokkos configuration, thinking I could get these sm_70
> flags, but that did not work.
>
> Any ideas?
>
> Mark
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200925/bca0bf7e/attachment.html>
More information about the petsc-dev
mailing list