MPI_Type_free(3OpenMPI)MPI_Type_free(3OpenMPI)NAME
MPI_Type_free - Frees a data type.
SYNTAX C Syntax
#include <mpi.h>
int MPI_Type_free(MPI_Ddatatype *datatype)
Fortran Syntax
INCLUDE 'mpif.h'
MPI_TYPE_FREE(DATATYPE, IERROR)
INTEGER DATATYPE, IERROR
C++ Syntax
#include <mpi.h>
void Datatype::Free()
INPUT /OUTPUT PARAMETER
datatype Datatype that is freed (handle).
OUTPUT PARAMETER
IERROR Fortran only: Error status (integer).
DESCRIPTION
Marks the datatype object associated with datatype for de-allocation and sets datatype to MPI_DATATYPE_NULL. Any communication that is cur-
rently using this datatype will complete normally. Derived datatypes that were defined from the freed datatype are not affected.
Freeing a datatype does not affect any other datatype that was built from the freed datatype. The system behaves as if input datatype argu-
ments to derived datatype constructors are passed by value.
ERRORS
Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ func-
tions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism
will be used to throw an MPI:Exception object.
Before the error value is returned, the current MPI error handler is called. By default, this error handler aborts the MPI job, except for
I/O function errors. The error handler may be changed with MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN may be
used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error.
Open MPI 1.2 September 2006 MPI_Type_free(3OpenMPI)
Check Out this Related Man Page
MPI_Type_size(3OpenMPI)MPI_Type_size(3OpenMPI)NAME
MPI_Type_size - Returns the number of bytes occupied by entries in a data type.
SYNTAX C Syntax
#include <mpi.h>
int MPI_Type_size(MPI_Datatype datatype, int *size)
Fortran Syntax
INCLUDE 'mpif.h'
MPI_TYPE_SIZE(DATATYPE, SIZE, IERROR)
INTEGER DATATYPE, SIZE, IERROR
C++ Syntax
#include <mpi.h>
int Datatype::Get_size() const
INPUT PARAMETER
datatype Datatype (handle).
OUTPUT PARAMETERS
size Datatype size (integer).
IERROR Fortran only: Error status (integer).
DESCRIPTION
MPI_Type_size returns the total size, in bytes, of the entries in the type signature associated with datatype; i.e., the total size of the
data in a message that would be created with this datatype. Entries that occur multiple times in the datatype are counted with their multi-
plicity.
ERRORS
Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ func-
tions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism
will be used to throw an MPI:Exception object.
Before the error value is returned, the current MPI error handler is called. By default, this error handler aborts the MPI job, except for
I/O function errors. The error handler may be changed with MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN may be
used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error.
Open MPI 1.2 September 2006 MPI_Type_size(3OpenMPI)
Hi, I'm trying to define an MPI_datatype for a structure, then do message passing for this created datatype. However, when I tried to broadcast the initialized data from rank 0, I found that part of the received data at other ranks are not correct. Could you please help me take a look at my code... (0 Replies)
Hi,
I have an smallint variable, say "a", i would like to prefix it with "0" in certain conditions. Is it possible to achieve that with this datatype?
For instance,
a=9 --> a=09
Many thanks (1 Reply)
Hi All,
I am new to unix but have a requirement wherein I need to separate datatype,length, and column name from input file which is of below format --
record
integer(10) empid;
string(25) name;
date("YYYY-MM-DD") dob;
decimal(10) salary;
end
now after getting datatype,its length and... (4 Replies)
I have a sourcefile which contains data as below.I want to check whether datatype,structure and date format looks good as mentioned.
Data is delemited by cydila .
Source file-Emp.txt
sno name phoneno dept joineddate
1 vivek 0861 CSE 2013-05-29 00:00:00
2 dinesh 123456 ECE ... (2 Replies)
I have a sourcefile which contains data as below.I want to check whether datatype,structure and date format looks good as mentioned.
Data is delemited by cydila Ç.
Source file-Emp.txt
snoÇnameÇphonenoÇdeptÇjoineddate
1ÇvivekÇ0861ÇCSEÇ2013-05-29 00:00:00
2ÇdineshÇ123456ÇECEÇ2013-05-29 00:00:00... (8 Replies)