Esempio n. 1
0
func Type_size(datatype Datatype) (int, int) {

	var cSize C.int

	err := C.MPI_Type_size(C.MPI_Datatype(datatype),
		&cSize)

	return int(cSize), int(err)
}
Esempio n. 2
0
File: mpi.go Progetto: npadmana/mpi
// TypeSize returns the size of an MPI type
func TypeSize(t1 MpiType) int {
	var n C.int
	C.MPI_Type_size(t1, &n)
	return int(n)
}
Esempio n. 3
0
File: mpi.go Progetto: npadmana/npgo
// TypeSize returns the size of an MPI type
func TypeSize(t1 MpiType) int {
	var n C.int
	C.MPI_Type_size(C.MPI_Datatype(t1), &n)
	return int(n)
}