Accéder au contenu.
Menu Sympa

starpu-devel - Re: [starpu-devel] Question regarding Starpu

Objet : Developers list for StarPU

Archives de la liste

Re: [starpu-devel] Question regarding Starpu


Chronologique Discussions 
  • From: Samuel Thibault <samuel.thibault@inria.fr>
  • To: Doru Adrian Thom Popovici <dtpopovici@lbl.gov>
  • Cc: starpu-devel@inria.fr
  • Subject: Re: [starpu-devel] Question regarding Starpu
  • Date: Tue, 8 Aug 2023 15:41:34 +0200
  • Authentication-results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=samuel.thibault@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr
  • Organization: I am not organized

Hello,

Doru Adrian Thom Popovici, le dim. 09 juil. 2023 17:42:25 -0700, a ecrit:
> I am looking for some information or guidance into how to create tasks with
> different numbers of threads? The code should be running on the CPU. I want
> to
> create a pool of threads equal to the total number of threads/cores.
> However,
> as I execute and launch the tasks, some tasks may only need 2 threads, while
> others need 8 threads. So depending on some property of the tasks, I would
> want
> to specify the number of threads executing that task.

That depends whether you are using parallel workers or combined workers.
With combined workers you can use the `can_execute` member of the
codelet to check that the combined worker has the expected number of
threads. For parallel workers, I guess something similar can be done,
but I don't know.

Samuel


  • Re: [starpu-devel] Question regarding Starpu, Samuel Thibault, 08/08/2023

Archives gérées par MHonArc 2.6.19+.

Haut de le page