@@ -71,6 +71,36 @@ function close(file::FileHandle)
71
71
return nothing
72
72
end
73
73
74
+ # Info
75
+ """
76
+ MPI.File.get_info(file::FileHandle)
77
+
78
+ Returns the hints for a file that are actually being used by MPI.
79
+
80
+ # External links
81
+ $(_doc_external (" MPI_File_get_info" ))
82
+ """
83
+ function get_info (file:: FileHandle )
84
+ file_info = Info (init= false )
85
+ @mpichk ccall ((:MPI_File_get_info , libmpi), Cint,
86
+ (MPI_File, Ptr{MPI_Info}), file, file_info)
87
+ return file_info
88
+ end
89
+
90
+ """
91
+ MPI.File.set_info!(file::FileHandle, info::Info)
92
+
93
+ Collectively sets new values for the hints associated with a MPI.File.FileHandle.
94
+
95
+ # External links
96
+ $(_doc_external (" MPI_File_set_info" ))
97
+ """
98
+ function set_info! (file:: FileHandle , info:: Info )
99
+ @mpichk ccall ((:MPI_File_set_info , libmpi), Cint,
100
+ (MPI_File, MPI_Info), file, info)
101
+ return file
102
+ end
103
+
74
104
# View
75
105
"""
76
106
MPI.File.set_view!(file::FileHandle, disp::Integer, etype::Datatype, filetype::Datatype, datarep::AbstractString; kwargs...)
@@ -322,7 +352,7 @@ $(_doc_external("MPI_File_write_ordered"))
322
352
function write_ordered (file:: FileHandle , buf:: Buffer )
323
353
stat_ref = Ref {Status} (MPI. STATUS_EMPTY)
324
354
# int MPI_File_write_ordered(MPI_File fh, const void *buf, int count,
325
- # MPI_Datatype datatype, MPI_Status *status)
355
+ # MPI_Datatype datatype, MPI_Status *status)
326
356
@mpichk ccall ((:MPI_File_write_ordered , libmpi), Cint,
327
357
(MPI_File, MPIPtr, Cint, MPI_Datatype, Ptr{Status}),
328
358
file, buf. data, buf. count, buf. datatype, stat_ref)
@@ -335,7 +365,7 @@ write_ordered(file::FileHandle, buf) = write_ordered(file, Buffer_send(buf))
335
365
SEEK_SET = MPI. MPI_SEEK_SET
336
366
SEEK_CUR = MPI. MPI_SEEK_CUR
337
367
SEEK_END = MPI. MPI_SEEK_END
338
- end
368
+ end
339
369
340
370
"""
341
371
MPI.File.seek_shared(file::FileHandle, offset::Integer, whence::Seek=SEEK_SET)
0 commit comments