OpenACC

Following the same idea for OpenMP, there are two levels to work with OpenACC, called level-0 and level-1.

level-1

This is a high level that enables the use of OpenACC through simple instructions.

class pyccel.stdlib.parallel.openacc.Range(start, stop, step, collapse=None, gang=None, worker=None, vector=None, seq=None, auto=None, tile=None, device_type=None, independent=None, private=None, reduction=None)[source]
__init__(start, stop, step, collapse=None, gang=None, worker=None, vector=None, seq=None, auto=None, tile=None, device_type=None, independent=None, private=None, reduction=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.openacc.Parallel(Async=None, wait=None, num_gangs=None, num_workers=None, vector_length=None, device_type=None, If=None, reduction=None, copy=None, copyin=None, copyout=None, create=None, present=None, deviceptr=None, private=None, firstprivate=None, default=None)[source]
__init__(Async=None, wait=None, num_gangs=None, num_workers=None, vector_length=None, device_type=None, If=None, reduction=None, copy=None, copyin=None, copyout=None, create=None, present=None, deviceptr=None, private=None, firstprivate=None, default=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: reduction

See script.