For cray-mpich+cuda (and cray-mpich+rocm), run patchelf --add-needed libmpi_gtl_cuda.so (.. hsa).
This is only for convenience, when not using the cray compiler wrapper, libmpi_gtl_cuda.so needs to be added manually at the moment. After this change, it's enough to link to libmpi.so.
For
cray-mpich+cuda
(andcray-mpich+rocm
), runpatchelf --add-needed libmpi_gtl_cuda.so
(..hsa
).This is only for convenience, when not using the cray compiler wrapper,
libmpi_gtl_cuda.so
needs to be added manually at the moment. After this change, it's enough to link tolibmpi.so
.