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
