@ompss

The @ompss (or @OmpSs) decorator shall be used to define that a task is going to invoke a OmpSs executable (Code 79).

Definition

Code 79 OmpSs task example
from pycompss.api.ompss import ompss

@ompss(binary="ompssApp.bin")
@task()
def ompss_func():
     pass

The OmpSs executable invocation can also be enriched with parameters, files and prefixes as with the @binary decorator through the function parameters and @task decorator information. Please, check @binary for more details.

Summary

Next table summarizes the parameters of this decorator. Please note that working_dir and args are the only decorator properties that can contain task parameters defined in curly braces.

Parameter

Description

binary

(Mandatory) String defining the full path of the binary that must be executed.

working_dir

Full path of the binary working directory inside the COMPSs Worker.