(j3.2006) (SC22WG5.4259) [ukfortran] Question on locks
Aleksandar Donev
adonev
Thu Apr 22 11:53:24 EDT 2010
On Thursday 22 April 2010, Reinhold Bader wrote:
> (hopefully correctly) understand it is needed here since the
> "user-defined way" described in NOTE 8.41 does not imply the one way
> ordering enforced by the semantics of LOCK.
There is no user-defined ordering without a sync memory. That is, user-
defined ordering needs to order segments, and without a sync memory
there is no segment boundary so there is nothing to order. Thus, you
always need them for user-defined ordering. For built-in
synchronizations, like SYNC ALL or LOCKs, the segments are delineated
and ordered as specified in the standard.
As to the "implicit sync memory" in some of the built ins, we had
arguments about that (I wanted to remove that since I believe it is not
necessary and does more harm than good...your question being to the
point...but I lost or resigned to what is there in order to reach
peace). My belief (maybe not shared by all on HPC subgroup) is that one
never needs sync memories, explicit or implicit, with the built-in
mechanisms. So you can simply forget about sync memory, as if it did not
exist in the standard at all, *unless* you want to go beyond the built-
in mechanisms.
Best,
Aleks
--
Aleksandar Donev, Ph.D.
Luis W. Alvarez Postdoctoral Fellow
Center for Computational Sciences and Engineering (https://ccse.lbl.gov)
Lawrence Berkeley National Laboratory (http://www.lbl.gov)
E-mail: adonev at lbl.gov
Phone: (510) 486-5782 Fax: (510) 486-6900
Address: MS 50A-1148, LBL, 1 Cyclotron Rd., Berkeley, CA 94720
Web: http://cims.nyu.edu/~donev/
More information about the J3
mailing list