For Intel legacy tasking, specifies a unit of work, potentially executed by a different thread.
- Can be any of the following:
- Creates a private, default-constructed version for each object invariable-listfor thetask. The original object referenced by the variable has an indeterminate value upon entry to the construct, must not be modified within the dynamic extent of the construct, and has an indeterminate value upon exit from the construct.
- Creates a private, copy-constructed version for each object invariable-listfor thetaskat the time thetaskis queued. The original object referenced by each variable retains its value but must not be modified within the dynamic extent of thetaskconstruct.
intel_omp_taskpragma specifies a unit of work, potentially executed by a different thread.
This pragma affects parallelization done using the
-qopenmpoption. Options that use OpenMP are available for both Intel® and non-Intel microprocessors, but these options may perform additional optimizations on Intel® microprocessors than they perform on non-Intel microprocessors. The list of major, user-visible OpenMP constructs and features that may perform differently on Intel® vs. non-Intel microprocessors includes: locks (internal and user visible), the SINGLE construct, barriers (explicit and implicit), parallel loop scheduling, reductions, memory allocation, and thread affinity and binding.