[Openmp-dev] Porting notes

David Chisnall David.Chisnall at cl.cam.ac.uk
Tue Mar 4 02:02:18 PST 2014


Hi,

I particularly noticed this:

> The runtime uses a variety of atomic operations; you'll need to work
> out how to implement them. They're used to implement locks and to
> implement atomic operations for the compiler. (#pragma omp atomic). A
> "compare and swap" is particularly useful here if you have
> one. Otherwise you may have to using locking to guard the operation,
> however that is normally significantly slower than a single atomic
> operation or a CAS. 

Is there a reason that we can't use the C11 atomic types and operations, since the compiler (or support library) already provides efficient implementations of these.

David

On 4 Mar 2014, at 09:33, Cownie, James H <james.h.cownie at intel.com> wrote:

> Here are some initial notes on porting issues.
> They’re still extremely incomplete (and haven’t been latex or doxygen-ised), but since people seemed to want *something* sooner rather than later maybe they’ll help.
>  
> -- Jim
> 
> James Cownie <james.h.cownie at intel.com>
> SSG/DPD/TCAR (Technical Computing, Analyzers and Runtimes)
> Tel: +44 117 9071438
>  
> ---------------------------------------------------------------------
> Intel Corporation (UK) Limited
> Registered No. 1134945 (England)
> Registered Office: Pipers Way, Swindon SN3 1RJ
> VAT No: 860 2173 47
> 
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
> 
> <Porting.txt>_______________________________________________
> Openmp-dev mailing list
> Openmp-dev at dcs-maillist2.engr.illinois.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/openmp-dev





More information about the Openmp-dev mailing list