MPI_File_open(MPI_Comm comm, const char* filename, int amode, MPI_Info info, MPI_File *fh)
PMPI_File_open(MPI_Comm comm, const char* filename, int amode, MPI_Info info, MPI_File *fh)
参数名 |
描述 |
取值范围 |
输入/输出 |
---|---|---|---|
comm |
通信器(句柄) |
非空 |
输入 |
*filename |
要打开文件的名称 |
非空,长度小于256字节 |
输入 |
amode |
文件访问模式 |
整数 |
输入 |
info |
Info对象(句柄) |
非空 |
输入 |
*fh |
目标地址,存放新的文件(句柄) |
非空 |
输出 |
错误码 |
描述 |
---|---|
MPI_ERR_BAD_FILE |
无效的文件名 |
MPI_ERR_AMODE |
不支持的访问模式 |
MPI_ERR_ARG |
其他类型的无效参数 |
MPI_ERR_ACCESS |
权限被拒绝 |
MPI_ERR_IO |
其他I/O错误 |
MPI_ERR_OTHER |
其他错误 |
Hyper IO库支持以以下amode打开文件: