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 09:50:12 -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-f175.google.com
- Ironport-phdr: 9a23:+eloMRKK6hI1KxZSndmcpTZWNBhigK39O0sv0rFitYgeI/vxwZ3uMQTl6Ol3ixeRBMOAuq4C07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9ZDeZwpFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QKsqUjq+8ahkVB7oiD8GNzEn9mHXltdwh79frB64uhBz35LYbISTOfFjfK3SYMkaSHJbXslTWSxPAo2yYYgSAeQfIelVtJPyq0cUoBakGQWgGOHixzlVjXH2x6061OEhHBnH0gM6BN0OqnXUo8vxNKwPUO661qjJzTLHb/NSwzj29Y/Fch87rv6XR7JwcNTeyU0gFwzfj1SQrojlPzeP2ekWvGib6vBvVeOri2I9tw5xpT2vy94qh4LUiIwVzVXE+j94wIYzPdC4VEB6Yd+4EJtMqS6aLZF6Td8lQ2FtoCo6y7sGuYS6fCcQ0pgnyQTfZvqaeIaL+hLuTPidLSt8iX5/e7+yhwy+/VWhx+HhTMW4zVRHoypDn9LRrH4CzQbT5dKCSvZl/keuxzKP1wfL5+FBO080lK7bJ4chw78+ipYfqErDEjL0lUj2lqOWeUIk+u+n6+TjfLrqvIOTN4hxig3mM6QunNKwAfggPwQQQ2SW/f6w2b7j8EHjXblHj+A6nrPEvJ3YJckXvqu5DBVU0oYn5Ra/FTCm0NEAkHkINl1KYwiHj4n3NFHKL/D3F/a+g1OokDdv3f/LJbLhApDXIXjClLftZ6py60lZyAYr19BQ+4pUCq0dIPL0QkLxr8DYAQUjMwys3ubrEchy2Z0AWW2RBq+UK6fSsV6T5uIzOOmAfoAVuDj6K/g/6P7hk2U1mV4bfamz3JsYcmq0Hvp8IxbRXX25q9ENC25CnhcxS6S+gVuOSzcVZ2u9WIo94Cs6AcSoF9GQfI21hK2923K0F5dMZ21CBVmeFnPsfq2LXv4NbGSZJcoyvCYDUO2OQoU71Byq/CDz2b1jKuOcriIRv4ji2dx67v/UkRU73TNxBsWZlWqKSjcnzSszWzYq0fUn8gRGwVCZ3P092qQAGA==
- 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>
Hello Andra,
Thanks for your fast answer. Now i know that this function you indicated do this "adds dynamically the workers in
workerids_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,
Joao
On 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+.