Download PathScale ENZO User Guide

Transcript
•
The generated loop can use too many registers, which prevents effective execution
The distribute transformation splits the initial loop into several separate loops. This directive has two parts:
•
•
The first part identifies the loop on which the transformation will be applied
The second part identifies where the loop shall be cut off.
The syntax is:
#pragma hmppcg distribute
#pragma hmppcg cut
[, addtoall {<dir> [; <dir>]*} ]*
[, order = <order_value> ]?
[, add
{<dir> [; <dir>]*} ]*
Where:
•
<dir> is a HMPP Codelet Generator directive. In this context, the hmppcg directive is written without the
“language directive prefix”.
For example:
!$hmppcg distribute, addtoall {unroll 2, jam}
Add an hmppcg unroll directive to the loops resulting from the application of the distribute clause.
•
•
<order_value> is a positive number (starting at zero).
The addtoall clause allows user to add new directives to the resulting loops created by the
transformation.
The distribute directive is attached to the loop to be divided. This loop must contain at least one cut directive.
Listing 38 and Listing 39 illustrate the use of this transformation.
NVIDIA ® is a registered trademark of the NVIDIA Corporation
This information is the property of PathScale Inc. and cannot be used, reproduced or transmitted without authorization.
Page 69
Copyright © 2010 PathScale Inc. - DOC-ENZO08022010