Peano
Loading...
Searching...
No Matches
LoopWithoutTaskLoop.h File Reference

Go to the source code of this file.

Macros

#define parallelForWithSchedulerInstructions(counter, max, loopParallelism)
 
#define endParallelFor   }}
 
#define parallelDforWithSchedulerInstructions2d(counter, max, loopParallelism)
 
#define parallelDforWithSchedulerInstructions3d(counter, max, loopParallelism)
 
#define parallelDforWithSchedulerInstructions4d(counter, max, loopParallelism)
 
#define parallelDforWithSchedulerInstructions5d(counter, max, loopParallelism)
 
#define endParallelDfor   }}
 
#define simtForWithSchedulerInstructions(counter, max, loopParallelism)
 
#define endSimtFor   }}
 
#define simtDforWithSchedulerInstructions2d(counter, max, loopParallelism)
 SIMT loop macro for OpenMP.
 
#define simtDforWithSchedulerInstructions3d(counter, max, loopParallelism)
 
#define simtDforWithSchedulerInstructions4d(counter, max, loopParallelism)
 
#define simtDforWithSchedulerInstructions5d(counter, max, loopParallelism)
 
#define endSimtDfor   }}}
 

Macro Definition Documentation

◆ endParallelDfor

#define endParallelDfor   }}

Definition at line 57 of file LoopWithoutTaskLoop.h.

◆ endParallelFor

#define endParallelFor   }}

Definition at line 12 of file LoopWithoutTaskLoop.h.

◆ endSimtDfor

#define endSimtDfor   }}}

Definition at line 118 of file LoopWithoutTaskLoop.h.

◆ endSimtFor

#define endSimtFor   }}

Definition at line 66 of file LoopWithoutTaskLoop.h.

◆ parallelDforWithSchedulerInstructions2d

#define parallelDforWithSchedulerInstructions2d (   counter,
  max,
  loopParallelism 
)
Value:
{ \
tarch::la::Vector<2,int> counter##Max(max); \
auto __loopParallelismUsedWithinMacroWithUniqueName = loopParallelism; \
_Pragma( "omp parallel for collapse(2) default(shared) if (__loopParallelismUsedWithinMacroWithUniqueName==::peano4::utils::LoopPlacement::SpreadOut)" ) \
for( int counter##0 = 0; counter##0 < counter##Max(0); counter##0++ ) \
for( int counter##1 = 0; counter##1 < counter##Max(1); counter##1++ ) { \
tarch::la::Vector<2, int> counter = { counter##0, counter##1 };
Simple vector class.
Definition Vector.h:159

Definition at line 15 of file LoopWithoutTaskLoop.h.

◆ parallelDforWithSchedulerInstructions3d

#define parallelDforWithSchedulerInstructions3d (   counter,
  max,
  loopParallelism 
)
Value:
{ \
tarch::la::Vector<3,int> counter##Max(max); \
auto __loopParallelismUsedWithinMacroWithUniqueName = loopParallelism; \
_Pragma( "omp parallel for collapse(3) default(shared) if (__loopParallelismUsedWithinMacroWithUniqueName==::peano4::utils::LoopPlacement::SpreadOut)" ) \
for( int counter##0 = 0; counter##0 < counter##Max(0); counter##0++ ) \
for( int counter##1 = 0; counter##1 < counter##Max(1); counter##1++ ) \
for( int counter##2 = 0; counter##2 < counter##Max(2); counter##2++ ) { \
tarch::la::Vector<3, int> counter = { counter##0, counter##1, counter##2 };

Definition at line 24 of file LoopWithoutTaskLoop.h.

◆ parallelDforWithSchedulerInstructions4d

#define parallelDforWithSchedulerInstructions4d (   counter,
  max,
  loopParallelism 
)
Value:
{ \
tarch::la::Vector<4,int> counter##Max(max); \
auto __loopParallelismUsedWithinMacroWithUniqueName = loopParallelism; \
_Pragma( "omp parallel for collapse(4) default(shared) if (__loopParallelismUsedWithinMacroWithUniqueName==::peano4::utils::LoopPlacement::SpreadOut)" ) \
for( int counter##0 = 0; counter##0 < counter##Max(0); counter##0++ ) \
for( int counter##1 = 0; counter##1 < counter##Max(1); counter##1++ ) \
for( int counter##2 = 0; counter##2 < counter##Max(2); counter##2++ ) \
for( int counter##3 = 0; counter##3 < counter##Max(3); counter##3++ ) { \
tarch::la::Vector<4, int> counter = { counter##0, counter##1, counter##2, counter##3 };

Definition at line 34 of file LoopWithoutTaskLoop.h.

◆ parallelDforWithSchedulerInstructions5d

#define parallelDforWithSchedulerInstructions5d (   counter,
  max,
  loopParallelism 
)
Value:
{ \
tarch::la::Vector<5,int> counter##Max(max); \
auto __loopParallelismUsedWithinMacroWithUniqueName = loopParallelism; \
_Pragma( "omp parallel for collapse(5) default(shared) if (__loopParallelismUsedWithinMacroWithUniqueName==::peano4::utils::LoopPlacement::SpreadOut)" ) \
for( int counter##0 = 0; counter##0 < counter##Max(0); counter##0++ ) \
for( int counter##1 = 0; counter##1 < counter##Max(1); counter##1++ ) \
for( int counter##2 = 0; counter##2 < counter##Max(2); counter##2++ ) \
for( int counter##3 = 0; counter##3 < counter##Max(3); counter##3++ ) \
for( int counter##4 = 0; counter##4 < counter##Max(4); counter##4++ ) { \
tarch::la::Vector<5, int> counter = { counter##0, counter##1, counter##2, counter##3, counter##4 };

Definition at line 45 of file LoopWithoutTaskLoop.h.

◆ parallelForWithSchedulerInstructions

#define parallelForWithSchedulerInstructions (   counter,
  max,
  loopParallelism 
)
Value:
{ \
auto __loopParallelismUsedWithinMacroWithUniqueName = loopParallelism; \
_Pragma( "omp parallel for default(shared) if ( __loopParallelismUsedWithinMacroWithUniqueName==::peano4::utils::LoopPlacement::SpreadOut)" ) \
for( int counter = 0; counter < max; counter++ ) {

Definition at line 6 of file LoopWithoutTaskLoop.h.

◆ simtDforWithSchedulerInstructions2d

#define simtDforWithSchedulerInstructions2d (   counter,
  max,
  loopParallelism 
)
Value:
{ \
tarch::la::Vector<2,int> counter##Max(max); \
auto __loopParallelismUsedWithinMacroWithUniqueName = loopParallelism; \
_Pragma( "omp parallel for collapse(1) default(shared) if (__loopParallelismUsedWithinMacroWithUniqueName==::peano4::utils::LoopPlacement::SpreadOut)" ) \
for( int counter##0 = 0; counter##0 < counter##Max(0); counter##0++ ) { \
_Pragma( "omp simd if (__loopParallelismUsedWithinMacroWithUniqueName!=::peano4::utils::LoopPlacement::Serial)" ) \
for( int counter##1 = 0; counter##1 < counter##Max(1); counter##1++ ) { \
tarch::la::Vector<2, int> counter = { counter##0, counter##1 };

SIMT loop macro for OpenMP.

Definition at line 72 of file LoopWithoutTaskLoop.h.

◆ simtDforWithSchedulerInstructions3d

#define simtDforWithSchedulerInstructions3d (   counter,
  max,
  loopParallelism 
)
Value:
{ \
tarch::la::Vector<3,int> counter##Max(max); \
auto __loopParallelismUsedWithinMacroWithUniqueName = loopParallelism; \
_Pragma( "omp parallel for collapse(2) default(shared) if (__loopParallelismUsedWithinMacroWithUniqueName==::peano4::utils::LoopPlacement::SpreadOut)" ) \
for( int counter##0 = 0; counter##0 < counter##Max(0); counter##0++ ) \
for( int counter##1 = 0; counter##1 < counter##Max(1); counter##1++ ) { \
_Pragma( "omp simd if (__loopParallelismUsedWithinMacroWithUniqueName!=::peano4::utils::LoopPlacement::Serial)" ) \
for( int counter##2 = 0; counter##2 < counter##Max(2); counter##2++ ) { \
tarch::la::Vector<3, int> counter = { counter##0, counter##1, counter##2 };

Definition at line 82 of file LoopWithoutTaskLoop.h.

◆ simtDforWithSchedulerInstructions4d

#define simtDforWithSchedulerInstructions4d (   counter,
  max,
  loopParallelism 
)
Value:
{ \
tarch::la::Vector<4,int> counter##Max(max); \
auto __loopParallelismUsedWithinMacroWithUniqueName = loopParallelism; \
_Pragma( "omp parallel for collapse(3) default(shared) if (__loopParallelismUsedWithinMacroWithUniqueName==::peano4::utils::LoopPlacement::SpreadOut)" ) \
for( int counter##0 = 0; counter##0 < counter##Max(0); counter##0++ ) \
for( int counter##1 = 0; counter##1 < counter##Max(1); counter##1++ ) \
for( int counter##2 = 0; counter##2 < counter##Max(2); counter##2++ ) { \
_Pragma( "omp simd if (__loopParallelismUsedWithinMacroWithUniqueName!=::peano4::utils::LoopPlacement::Serial)" ) \
for( int counter##3 = 0; counter##3 < counter##Max(3); counter##3++ ) { \
tarch::la::Vector<4, int> counter = { counter##0, counter##1, counter##2, counter##3 };

Definition at line 93 of file LoopWithoutTaskLoop.h.

◆ simtDforWithSchedulerInstructions5d

#define simtDforWithSchedulerInstructions5d (   counter,
  max,
  loopParallelism 
)
Value:
{ \
tarch::la::Vector<5,int> counter##Max(max); \
auto __loopParallelismUsedWithinMacroWithUniqueName = loopParallelism; \
_Pragma( "omp parallel for collapse(4) default(shared) if (__loopParallelismUsedWithinMacroWithUniqueName==::peano4::utils::LoopPlacement::SpreadOut)" ) \
for( int counter##0 = 0; counter##0 < counter##Max(0); counter##0++ ) \
for( int counter##1 = 0; counter##1 < counter##Max(1); counter##1++ ) \
for( int counter##2 = 0; counter##2 < counter##Max(2); counter##2++ ) \
for( int counter##3 = 0; counter##3 < counter##Max(3); counter##3++ ) { \
_Pragma( "omp simd if (__loopParallelismUsedWithinMacroWithUniqueName!=::peano4::utils::LoopPlacement::Serial)" ) \
for( int counter##4 = 0; counter##4 < counter##Max(4); counter##4++ ) { \
tarch::la::Vector<5, int> counter = { counter##0, counter##1, counter##2, counter##3, counter##4 };

Definition at line 105 of file LoopWithoutTaskLoop.h.

◆ simtForWithSchedulerInstructions

#define simtForWithSchedulerInstructions (   counter,
  max,
  loopParallelism 
)
Value:
{ \
auto __loopParallelismUsedWithinMacroWithUniqueName = loopParallelism; \
_Pragma( "omp simd if ( __loopParallelismUsedWithinMacroWithUniqueName!=::peano4::utils::LoopPlacement::Serial)" ) \
for( int counter = 0; counter < max; counter++ ) {

Definition at line 60 of file LoopWithoutTaskLoop.h.