MPI-IO/fr: Difference between revisions

Created page with "=== Utiliser les vues ==="
(Created page with "== Utilisation==")
(Created page with "=== Utiliser les vues ===")
Line 60: Line 60:
}
}
}}
}}
=== Using views ===
=== Utiliser les vues ===


Using views, each process can ''see'' a section of the file, as if it were the entire file. In this way it is no longer necessary to compute the file offsets as a function of the process rank. Once the view is defined, it is then a lot simpler to perform operations on this file, without risking conflicts with operations performed by other processes. A view is defined using the function [http://www.open-mpi.org/doc/current/man3/MPI_File_set_view.3.php MPI_File_set_view]. Here is a program identical to the previous example, but using views instead.
Using views, each process can ''see'' a section of the file, as if it were the entire file. In this way it is no longer necessary to compute the file offsets as a function of the process rank. Once the view is defined, it is then a lot simpler to perform operations on this file, without risking conflicts with operations performed by other processes. A view is defined using the function [http://www.open-mpi.org/doc/current/man3/MPI_File_set_view.3.php MPI_File_set_view]. Here is a program identical to the previous example, but using views instead.
rsnt_translations
56,430

edits