[Openmp-dev] Porting notes

Cownie, James H james.h.cownie at intel.com
Tue Mar 4 04:52:20 PST 2014


Probably no reason; just work.

-- Jim

James Cownie <james.h.cownie at intel.com>
SSG/DPD/TCAR (Technical Computing, Analyzers and Runtimes)
Tel: +44 117 9071438


-----Original Message-----
From: Dr D. Chisnall [mailto:dc552 at hermes.cam.ac.uk] On Behalf Of David Chisnall
Sent: Tuesday, March 04, 2014 11:02 AM
To: Cownie, James H
Cc: openmp-dev at dcs-maillist2.engr.illinois.edu
Subject: Re: [Openmp-dev] Porting notes

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

---------------------------------------------------------------------
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.





More information about the Openmp-dev mailing list