Download PathScale ENZO User Guide

Transcript
4.2.1.10 Loops ........................................................................................................................................49
4.2.1.11 Modules ....................................................................................................................................49
4.2.1.12 Operations ................................................................................................................................51
4.2.1.13 Function Calls ...........................................................................................................................51
4.2.2 Unsupported statements in codelet ....................................................................................................52
4.2.3 Parameter Passing Convention for Fortran codelets ..........................................................................52
4.2.4 Knowns limitations...............................................................................................................................52
5 Compiling HMPP Applications ............................................................................................................................52
5.1 Overview......................................................................................................................................................53
5.2 Common Command Line Parameters ........................................................................................................53
6 Running HMPP Applications................................................................................................................................53
6.1 Launching the Application............................................................................................................................53
7 HMPP Codelet Generators..................................................................................................................................53
8 Improved code generation and performance.......................................................................................................53
8.1 HMPPCG Directives Syntax .......................................................................................................................54
8.2 Interpretation order of the HMPPCG directives............................................................................................55
8.3 HMPPCG: Loop Properties .........................................................................................................................57
8.3.1 HMPPCG parallel Directive ................................................................................................................57
8.3.1.1 HMPPCG parallel: the reduce clause .........................................................................................57
8.3.2 Inhibiting Vectorization or Parallelization ............................................................................................59
8.3.3 HMPPCG Grid blocksize directive ......................................................................................................59
8.3.4 HMPPCG accelerated context queries ...............................................................................................61
8.3.4.1 The GridSupport() query .............................................................................................................63
8.3.4.2 The gridification queries ..............................................................................................................64
8.3.5 HMPPCG gridification support ............................................................................................................65
8.3.6 HMPPCG constantmemory directive...................................................................................................66
8.4 HMPPCG: loop transformations ..................................................................................................................67
8.4.1 Permute transformation.......................................................................................................................67
8.4.2 Distribute transformation .....................................................................................................................67
8.4.3 Fuse transformation ............................................................................................................................69
8.4.4 Unroll directive transformation ............................................................................................................71
8.4.4.1 Dealing with the unroll strategy ...................................................................................................72
8.4.4.2 Dealing with the remainder loop: ................................................................................................74
8.4.4.3 Dealing with scalar variables ......................................................................................................74
8.4.4.4 Jam clause .................................................................................................................................75
8.4.5 Full unroll transformation ....................................................................................................................78
8.4.6 Tile transformation ..............................................................................................................................79
9 Going further: factorization of the HMPP directives ............................................................................................81
9.1 General Rules for Preprocessor Commands ..............................................................................................81
9.1.1 Display Commands .............................................................................................................................82
9.1.2 #PRINT Command .............................................................................................................................82
9.1.3 #DEFINE Command without Argument ..............................................................................................82
9.1.4 #DEFINE Command with Arguments .................................................................................................83
9.1.5 #BLOCK and #INSERT without Arguments ........................................................................................84
9.1.6 #BLOCK and #INSERT with Arguments .............................................................................................85
10 ENZO™ Supported HWA..................................................................................................................................86
10.1.1 Hardware Accelerators .....................................................................................................................86
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 3
Copyright © 2010 PathScale Inc. - DOC-ENZO08022010