get MPI to work with device pointers