Accéder au contenu.
Menu Sympa

starpu-devel - Re: [starpu-devel] [measure elapsed time, parallel for construct]

Objet : Developers list for StarPU

Archives de la liste

Re: [starpu-devel] [measure elapsed time, parallel for construct]


Chronologique Discussions 
  • From: Samuel Thibault <samuel.thibault@inria.fr>
  • To: Maxim Abalenkov <maxim.abalenkov@gmail.com>
  • Cc: starpu-devel@inria.fr
  • Subject: Re: [starpu-devel] [measure elapsed time, parallel for construct]
  • Date: Tue, 8 Oct 2024 13:16:40 +0200
  • Authentication-results: mail2-relais-roc.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,

Maxim Abalenkov, le mar. 08 oct. 2024 12:07:56 +0100, a ecrit:
> 1) Can you please tell me, if StarPU has a simple function to measure
> elapsed
> time (an equivalent of OpenMP’s ‘omp_get_wtime’)?

Yes, it's starpu_timing_now().

> 2) At some places in my code I encounter a ‘for’ loop, that in OpenMP world
> can
> be parallelised with ‘#pragma omp parallel for’. Is there a simple StarPU
> construct to do that or do I need to explicitly create (CPU) kernel and
> codelet
> functions even in such simple cases?

We have not implemented a helper for that so far. The difficulty is the
outlining of the code to be embedded in the tasks. That being said,
StarPU provides OpenMP support for e.g. Klang-OMP:
https://files.inria.fr/starpu/doc/html/OpenMPRuntimeSupport.html

Samuel



Archives gérées par MHonArc 2.6.19+.

Haut de le page