Hello all,
I was looking into the fifo tasking layer and I was wondering
why moved tasks are added to the task pool with chpl_task_list_p = NULL.
In runtime/src/tasks/fifo/tasks-fifo.c, in the function
chpl_task_startMovedTask there is the call:
-- (void) add_to_task_pool(movedTaskWrapper, pmtwd, pmtwd->chpl_data, NULL); --.
I can't tell if chpl_task_list_p is marked as NULL because a thread will pick
it up
immediately(can we guarantee this by calling schedule_next_task(1)?
and why do that now and not inside the launch_next_task_in_new_thread),
or because there is no tasklist entry for it.
I have the following test program.
cobegin{
on Locales[1] do{
foo1();
cobegin{
foo2();
foo3();
}
}
foo4();
}
Will foo1() be added in the tasklist of locale 0, locale 1 or neither of them?
If it's added to any of the tasklists, how can we ensure execution has started,
since the pointer ltask (in add_to_task_pool call) is NULL?
If it's not added to any tasklist, is it governed by an implicit sync
(of the "on" block or of main()) as with begin_task?
I suppose a more general question would be, can locale 0 get any info
on the state of moved tasks?(including foo2() and foo3())
Finally, what is the purpose of assert(id == chpl_nullTaskID);
since the id is not used anywhere else in the function?
Thanks in advance.
Konstantina
-----
We invite research leaders and ambitious early career researchers to
join us in leading and driving research in key inter-disciplinary themes.
Please see www.hw.ac.uk/researchleaders for further information and how
to apply.
Heriot-Watt University is a Scottish charity
registered under charity number SC000278.
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers