Re: [OMPI users] questions about attribute caching

2018-12-16 Thread 邹海峰
Thank you for your patience. Best wishes ! Gilles Gouaillardet 于2018年12月16日周日 下午11:24写道: > Almost :-) > > seqBegin() and seqEnd() takes a communicator as a parameter. > So attribute caching is good for performance (only) if more than one > sequence *per communicator* is used in the application

Re: [OMPI users] questions about attribute caching

2018-12-16 Thread Gilles Gouaillardet
Almost :-) seqBegin() and seqEnd() takes a communicator as a parameter. So attribute caching is good for performance (only) if more than one sequence *per communicator* is used in the application. Cheers, Gilles On Sun, Dec 16, 2018 at 11:38 PM 邹海峰 wrote: > > Thank you very much for the reply.

Re: [OMPI users] questions about attribute caching

2018-12-16 Thread 邹海峰
Thank you very much for the reply. According to your explanation and the content from the website, if there is only one sequential execution in the program, then it doesn't matter whether using the attribute. But if there are multiple sequential execution, each process only needs to use MPI_Comm_

Re: [OMPI users] questions about attribute caching

2018-12-15 Thread Gilles Gouaillardet
Hi, Your understanding is incorrect : "Attributes are local to the process and specific to the communicator to which they are attached." (per https://www.mcs.anl.gov/research/projects/mpi/mpi-standard/mpi-report-1.1/node119.htm) think an attribute is often a pointer, and really bad things can ha

[OMPI users] questions about attribute caching

2018-12-15 Thread 邹海峰
Hi there, At first, I think attribute is just like global variable that attached to a specific communicator. I can define and set the value on one process, then get and modify the value on another process as long as those processes belonging to the same communicator. But when I was reading chapter