[petsc-users] cudaSetDevice

Karl Rupp rupp at mcs.anl.gov
Tue Jan 14 14:04:37 CST 2014


Hi Harshad,

 > Lazy initialization mechanism looks good. But the problem is that the
> initialize will still happen twice if we create Vec in both our Petsc
> instances.
>
> Can we have an option for Petsc in which we can specify whether
> cudaSetDevice should be run by Petsc or not?

yes, this is easy to provide once the lazy instantiation is in place.

Best regards,
Karli



More information about the petsc-users mailing list