It seems we can call MPI_Bcast without calling MPI_Barrier first. Calling MPI_Barrier first seems to cause deadlock