Ejemplo n.º 1
0
Archivo: mpi.go Proyecto: 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
}
Ejemplo n.º 2
0
Archivo: mpi.go Proyecto: adk9/go-mpi
func Barrier(comm MPI_Comm) int {
	ret := C.MPI_Barrier(comm)
	return int(ret)
}
Ejemplo n.º 3
0
Archivo: mpi.go Proyecto: rwl/mpi
func Barrier(comm C.MPI_Comm) {
	//
	C.MPI_Barrier(comm)
}
Ejemplo n.º 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)
}