From schnetter at cct.lsu.edu Wed Nov 4 16:22:09 2009 From: schnetter at cct.lsu.edu (Erik Schnetter) Date: Wed, 4 Nov 2009 16:22:09 -0600 Subject: [Patches] Detect certain GNU attributes Message-ID: <9CAA4657-B5E5-48B5-9E72-D510E4CDEE04@cct.lsu.edu> Detect whether the compiler supports the attributes const pure unused cold hot These attributes can be used to annotate declarations of variables, functions, and member functions to avoid warnings or enable additional optimisations. Detect whether the _Pragma directive is recognised. _Pragma can be used instead of #pragma, but works also inside macros. Update the detection of the static, inline, and restrict qualifiers to catch certain compiler errors, and avoids using these attributes with these compilers. -erik -- Erik Schnetter http://www.cct.lsu.edu/~eschnett/ -------------- next part -------------- A non-text attachment was scrubbed... Name: pure.diff Type: application/octet-stream Size: 16605 bytes Desc: not available Url : http://www.cactuscode.org/pipermail/patches/attachments/20091104/b0df7804/attachment-0001.obj From schnetter at cct.lsu.edu Wed Nov 4 21:46:54 2009 From: schnetter at cct.lsu.edu (Erik Schnetter) Date: Wed, 4 Nov 2009 21:46:54 -0600 Subject: [Patches] Add new modes global_early and global_late Message-ID: <2233E246-0708-4F1A-9253-A46D76E36FDE@cct.lsu.edu> Add flesh support for new modes global_early and global_late, as well as meta_early and meta_late. These modes are parsed by the flesh, and are passed to the driver; support in the driver has to be provided independently Output the mode in the schedule tree. -erik -- Erik Schnetter http://www.cct.lsu.edu/~eschnett/ -------------- next part -------------- A non-text attachment was scrubbed... Name: modes.diff Type: application/octet-stream Size: 3827 bytes Desc: not available Url : http://www.cactuscode.org/pipermail/patches/attachments/20091104/d53d2023/attachment.obj From dprideout at gmail.com Thu Nov 12 14:02:24 2009 From: dprideout at gmail.com (David Rideout) Date: Thu, 12 Nov 2009 15:02:24 -0500 Subject: [Patches] The flesh evaluates parameter expressions for the size of grid arrays too early Message-ID: <1ce81abb0911121202l6cfff2c0oee7827d2504b59ec@mail.gmail.com> The flesh evaluates parameter expressions for the size of grid arrays when the thorn is activated. This disallows the possibility of steering the parameters before the driver allocates memory for such grid variables. The enclosed patch evaluates parameter expressions for the size of grid arrays within the call to CCTK_GroupSizesI(), so that it takes into account the most current values for the parameters. May I commit this? Thanks, David -------------- next part -------------- A non-text attachment was scrubbed... Name: patch Type: application/octet-stream Size: 1414 bytes Desc: not available Url : http://www.cactuscode.org/pipermail/patches/attachments/20091112/8134dec2/attachment.obj