OpenMP¶
There are two levels to work with OpenMP, called level-0 and level-1.
level-1¶
This is a high level that enables the use of OpenMP through simple instructions.
-
class
pyccel.stdlib.parallel.openmp.
Range
(start, stop, step, nowait=None, collapse=None, private=None, firstprivate=None, lastprivate=None, reduction=None, schedule=None, ordered=None, linear=None)[source]¶ -
__init__
(start, stop, step, nowait=None, collapse=None, private=None, firstprivate=None, lastprivate=None, reduction=None, schedule=None, ordered=None, linear=None)[source]¶ x.__init__(…) initializes x; see help(type(x)) for signature
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
pyccel.stdlib.parallel.openmp.
Parallel
(num_threads=None, if_test=None, private=None, firstprivate=None, shared=None, reduction=None, default=None, copyin=None, proc_bind=None)[source]¶ -
__init__
(num_threads=None, if_test=None, private=None, firstprivate=None, shared=None, reduction=None, default=None, copyin=None, proc_bind=None)[source]¶ x.__init__(…) initializes x; see help(type(x)) for signature
-
__weakref__
¶ list of weak references to the object (if defined)
-
Example: Hello world¶
See script
.
Example: matrix multiplication¶
See script
.