[petsc-users] cudaSetDevice

Jed Brown jedbrown at mcs.anl.gov
Tue Oct 8 19:54:02 CDT 2013


Paul Mullowney <paulmullowney at gmail.com> writes:

> Perhaps one can do cudaGetDevice() and cudaDeviceReset() in between the two
> calls to PetscInitialize in the application code?
> Provided no device data was allocated in between the two calls, this might
> eliminate the error.

Sure, but how will we actually share the device between libraries?  What
if the other library was not PETSc, but something else, and they also
called cudaSetDevice, but with a different default mapping strategy?

We need an interface that handles this case.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131008/09abe20e/attachment.pgp>


More information about the petsc-users mailing list