From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,f20ed1bf8d95ab20,start X-Google-Attributes: gid1164f8,public From: Jonathan Hill Subject: Memory consistency problems on the 8400 Date: 1997/03/25 Message-ID: #1/1 X-Deja-AN: 228315732 Organization: Oxford University Computing Laboratory Newsgroups: comp.sys.dec Hello, I'm having some problems on an Alpha 8400 with memory consistency between processors. I've developed some barrier synchronisation routines that have a latency of 4 usec on the 8400 compared to 90usec for the best alternative technique that uses semaphores (see [1] below). However, the barrier doesn't guarantee memory consistency (so it's pretty useless ;-) as a process can have writes that are still pending, although each of the processes have reached a consistent state. There is a nice paper about this problem from Digital WRL labs [2], which discusses write fences on the alpha. Is there a system call for performing a memory fence on the Alpha? i.e., something akin to the following operation which is available on the T3E? Thanks... jon [1] `Practical barrier synchronisation'' Jonathan M. D. Hill and David B. Skillicorn. Technical Report 16-96, Programming Research Group, Oxford University Computing Laboratory, August 1996. ftp://ftp.comlab.ox.ac.uk/pub/Documents/techpapers/Jonathan.Hill/HillSkill_barrier.ps.Z [2] ``Shared memory consistency models: a tutorial'' S. Adve and K Gharachorloo, Digital WRL labs, Sept 1995. MEMORY_BARRIER(3I) CrayLibs 2.0 SR-3903 2.0 NAME MEMORY_BARRIER - Blocks subsequent memory load and store operations until all previous loads and stores finish SYNOPSIS C: void _memory_barrier(void); Fortran: MEMORY_BARRIER () IMPLEMENTATION CRAY T3E systems STANDARDS CF90 compiler extension to Fortran 90 Cray Standard C compiler extension to Standard C Cray C++ compiler extension to Draft Standard C++ DESCRIPTION The MEMORY_BARRIER intrinsic subroutine guarantees that subsequent loads and stores do not access memory until after previous loads and stores finish accessing memory. MEMORY_BARRIER does not vectorize. The compiler generates inline code to evalaute this intrinsic. The name of this intrinsic cannot be passed as an argument. SEE ALSO CF90 Fortran Language Reference Manual, Volume 2, publication SR-3903, for the printed version of this man page. -- ----------------------------------------------------------- Jonathan Hill, Oxford University Computing Laboratory