Paul Mullowney <[email protected]> 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.
pgpY7B3mmOCPN.pgp
Description: PGP signature
