From 73d96a7701453d27d9311fb10765f15dfd3264e4 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Wed, 17 Apr 2019 23:34:16 +0200 Subject: [PATCH] comments about implem --- src/smpi/include/smpi_file.hpp | 8 ++++++++ src/smpi/mpi/smpi_file.cpp | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/smpi/include/smpi_file.hpp b/src/smpi/include/smpi_file.hpp index 42fd949a9d..d00a97cde0 100644 --- a/src/smpi/include/smpi_file.hpp +++ b/src/smpi/include/smpi_file.hpp @@ -49,6 +49,14 @@ class File{ static int del(char *filename, MPI_Info info); }; + /* Read_all, Write_all : loosely based on */ + /* @article{Thakur:1996:ETM:245875.245879,*/ + /* author = {Thakur, Rajeev and Choudhary, Alok},*/ + /* title = {An Extended Two-phase Method for Accessing Sections of Out-of-core Arrays},*/ + /* journal = {Sci. Program.},*/ + /* issue_date = {Winter 1996},*/ + /* pages = {301--317},*/ + /* }*/ template int File::op_all(void *buf, int count, MPI_Datatype datatype, MPI_Status *status){ //get min and max offsets from everyone. diff --git a/src/smpi/mpi/smpi_file.cpp b/src/smpi/mpi/smpi_file.cpp index 3aec0f2a4e..86bcbcdabd 100644 --- a/src/smpi/mpi/smpi_file.cpp +++ b/src/smpi/mpi/smpi_file.cpp @@ -109,6 +109,16 @@ namespace smpi{ return MPI_SUCCESS; } + /*Ordered and Shared Versions, with RMA-based locks : Based on the model described in :*/ + /* @InProceedings{10.1007/11557265_15,*/ + /* author="Latham, Robert and Ross, Robert and Thakur, Rajeev and Toonen, Brian",*/ + /* title="Implementing MPI-IO Shared File Pointers Without File System Support",*/ + /* booktitle="Recent Advances in Parallel Virtual Machine and Message Passing Interface",*/ + /* year="2005",*/ + /* publisher="Springer Berlin Heidelberg",*/ + /* address="Berlin, Heidelberg",*/ + /* pages="84--93"*/ + /* }*/ int File::read_shared(MPI_File fh, void *buf, int count, MPI_Datatype datatype, MPI_Status *status){ fh->lock(); fh->seek(fh->shared_file_pointer_,MPI_SEEK_SET); -- 2.20.1