Open rpereira-dev opened 5 months ago
I'd suggest whether (option 1) adding a schedule(IMPLICIT, B)
before the cancel
line 17 or (option 2) not raising the schedule(B, IMPLICIT)
after discarding a task
@llvm/issue-subscribers-openmp
Author: PEREIRA Romain (rpereira-dev)
Something seems wrong with the OMPT
task_schedule
event on tasks whose taskgroup had been cancelled, please see minimal example bellowLLVM version
main.c
OMPT tool used
Compiled and run as
Outputs
Event Line 12 - The thread switches from its implicit (parent) task
0x55a0067a5280
to the explicit task A0x55a0068a7880
Event Line 13-14 - The taskgroup is cancelled Event Line 15 - The thread switches from the explicit task A0x55a0068a7880
to its implicit (parent) task0x55a0067a5280
Event Line 16 - The thread create the task B0x55a0068a7880
Event Line 17 - The thread discards the task B0x55a0068a7880
Event Line 18 - The thread switches from the explicit task B0x55a0068a7880
to its implicit (parent) task0x55a0067a5280
- (ERROR: the current task is0x55a0067a5280
)