Skip to content

Batched kernel and PARSEC_HOOK_RETURN_AGAIN #788

Description

@devreal

Describe the bug

If the last return of the head of a batched task ring was PARSEC_HOOK_RETURN_AGAIN then we drop the ring and execute the task. That way we lose the non-lead members of the ring so they will never be touched again.

See https://github.com/ICLDisco/parsec/blob/master/parsec/mca/device/device_gpu.c#L2640 where we jump to the schedule_task label and the callback will make the task a singleton. Instead, we should splice the ring into the pending_tasks list and get the head out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions