Harshad Sahasrabudhe <[email protected]> writes:
> You are right, it doesn't if you use just one PETSc. In our case, we
> use 2 PETSc libraries (compiled separately, one each for complex and
> double). 

Please remind us of this when you write.  We don't know everyone in your
group at Purdue and it would simplify our figuring out what could cause
the weird problems you encounter.

> And in that case, when the second PETSc library is initialized,
> cudaSetDevice throws an error. I can't think of any way in which both
> the PETSc libraries could be initialized with CUDA on the same
> process.

This is a general issue of interoperability between multiple libraries
that want to use CUDA.  How can we find out if someone else has already
called cudaSetDevice?

Attachment: pgpd3MtbfwpZ0.pgp
Description: PGP signature

Reply via email to