Example #1
0
File: mpi.go Project: npadmana/mpi
// Barrier calls MPI_Barrier
func Barrier(comm Comm) error {
	perr := C.MPI_Barrier(comm)
	if perr != 0 {
		return errors.New("Error calling Barrier")
	}
	return nil
}
Example #2
0
File: mpi.go Project: adk9/go-mpi
func Barrier(comm MPI_Comm) int {
	ret := C.MPI_Barrier(comm)
	return int(ret)
}
Example #3
0
File: mpi.go Project: rwl/mpi
func Barrier(comm C.MPI_Comm) {
	//
	C.MPI_Barrier(comm)
}
Example #4
0
//Barrier
//Blocks until all processes have reached this routine.
func Barrier(comm Comm) int {

	err := C.MPI_Barrier(C.MPI_Comm(comm))

	return int(err)
}