インターフェース
#include <mpi.h>
typedef int MPI_Datatype;
送受信で使うデータ型を指定するための識別用の数値です。
以下に、定義済みの型の一部を示します。
型 | 内容 |
MPI_CHAR | char |
MPI_SHORT | short |
MPI_INT | int |
MPI_LONG | long |
MPI_LONG_LONG | long long |
MPI_FLOAT | float |
MPI_DOUBLE | double |
MPI_LONG_DOUBLE | long double |
MPI_UNSIGNED_CHAR | unsigned char |
MPI_UNSIGNED_SHORT | unsigned short |
MPI_UNSIGNED | unsigned |
MPI_UNSIGNED_LONG | unsigned long |
MPI_UNSIGNED_LONG_LONG | unsigned long long |
MPI_INT8_T | int8_t |
MPI_INT16_T | int16_t |
MPI_INT32_T | int32_t |
MPI_INT64_T | int64_t |
MPI_UINT8_T | uint8_t |
MPI_UINT16_T | uint16_t |
MPI_UINT32_T | uint32_t |
MPI_UINT64_T | uint64_t |
MPI_2INT | int[2] |
MPI_SHORT_INT | struct { short data1; int data2; } |
MPI_LONG_INT | struct { long data1; int data2; } |
MPI_FLOAT_INT | struct { float data1; int data2; } |
MPI_DOUBLE_INT | struct { double data1; int data2; } |
MPI_LONG_DOUBLE_INT | struct { long double data1; int data2; } |
関連ページ
MPIの解説 目次