Objet : Developers list for StarPU
Archives de la liste
Re: [Starpu-devel] Moving Workers from One Context To Another in Real Time
Chronologique Discussions
- From: Gabriel Gazolla <gabrielgazolla@gmail.com>
- To: Andra Hugo <andra.hugo@inria.fr>
- Cc: starpu-devel@lists.gforge.inria.fr
- Subject: Re: [Starpu-devel] Moving Workers from One Context To Another in Real Time
- Date: Tue, 28 Mar 2017 15:09:47 -0300
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=gabrielgazolla@gmail.com; spf=Pass smtp.mailfrom=gabrielgazolla@gmail.com; spf=None smtp.helo=postmaster@mail-yw0-f182.google.com
- Ironport-phdr: 9a23:4f2LDR9gwBI9Tf9uRHKM819IXTAuvvDOBiVQ1KB32u0cTK2v8tzYMVDF4r011RmSDNmds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2e2//5Lebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMNboRr4oRzut86ZrSAfpiCgZMT457HrXgdF0gK5CvR6tuwBzz4vSbYqINvRxY7ndcMsARWVDUMZfVyJPDIChYYURE+UMJvxXo5XnqlYUsReyGQuhCeXywTFInH/22qg63vwgHw7cxwMgBdMOv2rQrN7oNakdS+G0zK7MzTXHdfxdxDDw6IfSfR86u/GMXKx/cc7eyUY1FgLFiVGQqYj/MD6O2eQNtnKU7+tkVe61l2EnrARxryGpy8wxhIfJgYcVxUrF9SV/2Is1OdO5SE9nYd64DpRQrTuWOJdxQsMnW21ouSA6yqcHuZGhZiQKxo4nyhjCYPKEa4iF+gzvWPqVLDtih39oeKiziwuz/ES90OHwS8q53EhMoyFYiNfDrGoN2AbW6sWfSvty4EOh2TGX2gDW8O5EIEQ0mbPbKp8v3rI8j5QTvVnAEyPogkn2g6iWdkIr+uis9evreKnpppiZN4NsiwH+NLohmtCnDOgmLgQDW3KX9Oe82bH54EH0QahGgucrnqTarpzWPcEbqbS4Aw9R3IYj8RG/DzK+3dQXh3YIN0hFeBOZgIjtNFHBOvH5DfC7g1Soijhm3P/GPrj7DZXMKnjPiqvufbF460JE0go80chf545ICrEGOP/zQVPxu8bCDh8hLgy42vvoB8tj1owAXWKCGauZMKLJsV+U/eIjOeaMZIESuDbnJPgq+eTijX4/mV8HfKmmx4EbaH6iHqcuH0LMSHzgmN5JMXoFuUJqRermklTEUSNcYF6zWbg973c1EtT1N4rbQpGRh+mO1S2hH5BSaWlUDVSIGF/ncoyFX7EHbyfBDNVml2krXLK7SoIlnT6npgj+z7MveuXd8DcZuJbs3cpy4+navR43/D1wSc+a1jfeHClPgmoUSmpuj+hEqktnxwLGiPAgjg==
- List-archive: <http://lists.gforge.inria.fr/pipermail/starpu-devel/>
- List-id: "Developers list. For discussion of new features, code changes, etc." <starpu-devel.lists.gforge.inria.fr>
Thanks a lot Andra!
Best,
Joao Gabriel
On Tue, Mar 28, 2017 at 3:06 PM, Andra Hugo <andra.hugo@inria.fr> wrote:
Hi Gabriel,No there is no specific functionality for this.I would say it depends on the scheduler you use: dmda uses performance models, which describe how "fast" are certain tasks on certain workers, and then the scheduling decision is done accordingly, heteroprio builds some priority lists where say worker X can pull only certain tasks ( with a certain priority), if this one is busy the tasks are pulled by other workers. Otherwise you can also implement your own scheduler.Hope this helps!AndraDe: "Gabriel Gazolla" <gabrielgazolla@gmail.com>
À: "Andra Hugo" <andra.hugo@inria.fr>
Cc: starpu-devel@lists.gforge.inria.fr
Envoyé: Mardi 28 Mars 2017 16:51:32
Objet: Re: [Starpu-devel] Moving Workers from One Context To Another in Real TimeHello Andra,Thanks for all information!I have another final question for you (Consider that I am not using hypervisor):Is it possible to make a task prefer a certain worker (inside a context of 3 workers for instance) ?I would like to this task to use Worker 2 inside Context 1 which has 3 workers, since I know it will execute faster....but there`s no problem if the task is assigned to another worker inside this context, but it would be better...Is there a way to set or do this ?Best,Joao GabrielOn Tue, Mar 28, 2017 at 11:25 AM, Andra Hugo <andra.hugo@inria.fr> wrote:Hi Gabriel,You should use the hypervisor in that case and use the idle strategy.In sc_hypervisor/examples you have a few examples of how to do that. Let me know if you need any help with that.Best,AndraDe: "Gabriel Gazolla" <gabrielgazolla@gmail.com>
À: "Andra Hugo" <andra.hugo@inria.fr>
Cc: starpu-devel@lists.gforge.inria.fr
Envoyé: Mardi 28 Mars 2017 14:50:12
Objet: Re: [Starpu-devel] Moving Workers from One Context To Another in Real TimeHello Andra,Thanks for your fast answer. Now i know that this function you indicated do this "adds dynamically the workers inworkerids_ctx:, thank you very much!
I hope you can help me in another question:1) How Can I test from time to time that Context 2 Queue Line of Tasks is Empty so I can move the workers back to Context 1 dinamically ? Notice that I already submitted all the tasks to both contexts and after that there`s the barrier starpu_task_wait_for_all(), is it anywhere between the submission and this barrier?Best,JoaoOn Tue, Mar 28, 2017 at 4:39 AM, Andra Hugo <andra.hugo@inria.fr> wrote:Hi Gabriel,You can call starpu_sched_ctx_add_workers and starpu_sched_ctx_remove_workers. If you call only starpu_sched_ctx_add_workers without removing the workers from the other context, the workers will be shared between the two contexts and do round robin when poping tasks.Does this answer your question?Best,AndraDe: "Gabriel Gazolla" <gabrielgazolla@gmail.com>
À: starpu-devel@lists.gforge.inria.fr
Envoyé: Mardi 28 Mars 2017 02:12:03
Objet: [Starpu-devel] Moving Workers from One Context To Another in Real Time_______________________________________________Hello StarPU Team,
I have an interesting question, I hope you can help me...Imagine this situation:I have two contexts: Context 1 (CPU1, CPU2, CPU3) and Context 2 (GPU1)With starPU paused i submit 900 tasks to Context 1 and 100 tasks to Context 2.After I submit all of them, I resume, so all the tasks can start to execute.i put the function starpu_task_wait_for_all(); to wait for all the tasks to finish.Now comes the tricky part:I already know that Context 2 is going to finish light years faster than Context 1, I would like to move all workers from Context 2 to the Context 1, so the workers on Context 2 can help Context 1 finish faster. Is it possible to do it ? or do I need to wait for the barrier starpu_task_wait_for_all(); ?===I tried to do this with starpu_sched_ctx_set_inheritor, starpu_sched_ctx_finished_submit() and starpu_sched_ctx_delete().....but I think it doesnt work on the described situation, since I need to wait for the barrier starpu_task_wait_for_all() to one context inherit the workers of another context, am I right? or is there a way how to do it like on the described situation in real time?Thanks for any help or commentaries!Best,
Joao
Starpu-devel mailing list
Starpu-devel@lists.gforge.inria.fr
https://lists.gforge.inria.fr/mailman/listinfo/starpu-devel--
--
- [Starpu-devel] Moving Workers from One Context To Another in Real Time, Gabriel Gazolla, 28/03/2017
- Re: [Starpu-devel] Moving Workers from One Context To Another in Real Time, Andra Hugo, 28/03/2017
- Re: [Starpu-devel] Moving Workers from One Context To Another in Real Time, Gabriel Gazolla, 28/03/2017
- Re: [Starpu-devel] Moving Workers from One Context To Another in Real Time, Andra Hugo, 28/03/2017
- Re: [Starpu-devel] Moving Workers from One Context To Another in Real Time, Gabriel Gazolla, 28/03/2017
- Re: [Starpu-devel] Moving Workers from One Context To Another in Real Time, Andra Hugo, 28/03/2017
- Re: [Starpu-devel] Moving Workers from One Context To Another in Real Time, Gabriel Gazolla, 28/03/2017
- Re: [Starpu-devel] Moving Workers from One Context To Another in Real Time, Andra Hugo, 28/03/2017
- Re: [Starpu-devel] Moving Workers from One Context To Another in Real Time, Gabriel Gazolla, 28/03/2017
- Re: [Starpu-devel] Moving Workers from One Context To Another in Real Time, Andra Hugo, 28/03/2017
- Re: [Starpu-devel] Moving Workers from One Context To Another in Real Time, Gabriel Gazolla, 28/03/2017
- Re: [Starpu-devel] Moving Workers from One Context To Another in Real Time, Andra Hugo, 28/03/2017
Archives gérées par MHonArc 2.6.19+.