Be sure you have a cuda-aware MPI implementation.
I don’t know if this is the reason of your problem, but I had the same issue (putting things to gpu made it crash), though a different error message.
Check this: Segfault using cuda with openmpi