#pragma omp taskloop simd

Purpose

The omp taskloop simd directive specifies that a loop can be executed concurrently using SIMD instructions and that the iterations are to be executed in parallel using OpenMP tasks.

Syntax

Read syntax diagramSkip visual syntax diagram
                                 .-+---+------.   
                                 | '-,-'      |   
                                 V            |   
>>-#--pragma--omp taskloop simd----+--------+-+----------------><
                                   '-clause-'     

Read syntax diagramSkip visual syntax diagram
>>-for-loops---------------------------------------------------><

Parameters

The omp taskloop simd construct is a composite construct. clause can be any of the clauses that are accepted by the omp taskloop or omp simd directive except the reduction clause. The specified clause has identical meanings and restrictions applied as used in the omp taskloop or omp simd directive.

Rules

If any specified clause except the collapse clause is applicable to both the omp taskloop and omp simd directives, the clause is applied twice; the collapse clause is applied only once.



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us