Missing Start Task

Occurs when an end task annotation is executed but there is no active task.

Problem type: Missing start task

ID

Code Location

Description

1

Task end

Represents the location and associated call stack when the task end annotation was executed.

2

Parallel site

If present, represents the location and associated call stack of the beginning of the parallel site that contained the task end annotation.

Example

void main()
{
    ANNOTATE_SITE_BEGIN(name_site1);
        ANNOTATE_TASK_END();
    ANNOTATE_SITE_END();

}

This example lacks an ANNOTATE_TASK_BEGIN(taskname) annotation.

Note

This error also occurs if your code branches around an ANNOTATE_TASK_BEGIN(taskname) annotation.

Possible Correction Strategies

Always execute an ANNOTATE_TASK_BEGIN(taskname) annotation before executing an ANNOTATE_TASK_END() annotation.

For more information about annotating tasks, see Annotating Parallel Sites and Tasks and the discussion of task annotations in About Annotations.

For more complete information about compiler optimizations, see our Optimization Notice.