Accéder au contenu.
Menu Sympa

starpu-devel - Re: [Starpu-devel] Problems with memory in CUDA

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] Problems with memory in CUDA


Chronologique Discussions 
  • From: Nathalie Furmento <nathalie.furmento@labri.fr>
  • To: Cyril Bordage <cyril.bordage@inria.fr>
  • Cc: starpu-devel <starpu-devel@lists.gforge.inria.fr>
  • Subject: Re: [Starpu-devel] Problems with memory in CUDA
  • Date: Mon, 21 Oct 2013 11:56:42 +0200
  • 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>

On 21/10/2013 02:09, Cyril Bordage wrote:
Hi,

I call starpu_data_unregister_submit to free memory. It works well on
CPUs, but only on CPUs, not on GPUs. To be more precise, I see, with
nvidia-smi, only increasing in memory consumption. And it ends with a
"error: out of memory". If I split my program into two passes, it works
like a charm (no out of memory).


Cyril.

_______________________________________________
Starpu-devel mailing list
Starpu-devel@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/starpu-devel

Cyril,

You should tell us more. Which version of StarPU ? Which machine ? What do you mean by 2 passes ?

There is currently a problem with the cuda allocation memory both in the trunk and the branch starpu-1.1 following the commit introducing the batch allocation of small CUDA allocations (<= 4MiB) to avoid the huge cudaMalloc overhead. You could try to disable it by setting the value of CHUNK_ALLOC_MAX to 0 in the file src/datawizard/malloc.c

I have no ideas if both problems are linked though.

Cheers,

Nathalie






Archives gérées par MHonArc 2.6.19+.

Haut de le page