Accéder au contenu.
Menu Sympa

starpu-devel - Re: [starpu-devel] Suspicious check in the cuda memory allocation routine

Objet : Developers list for StarPU

Archives de la liste

Re: [starpu-devel] Suspicious check in the cuda memory allocation routine


Chronologique Discussions 
  • From: Samuel Thibault <samuel.thibault@inria.fr>
  • To: David <dstrelak@cnb.csic.es>
  • Cc: starpu-devel@inria.fr
  • Subject: Re: [starpu-devel] Suspicious check in the cuda memory allocation routine
  • Date: Sat, 15 May 2021 16:47:43 +0200
  • Ironport-hdrordr: A9a23:mvHSrK8rUvcpsUfiCYVuk+DbI+orL9Y04lQ7vn2ZLiYlFfBw9vre+MjzsCWetN9/YhAdcLy7VZVoOEm9yXcW2/hyAV7KZmCPhILPFu9fBKTZrAEIcBeVygcy78tdm78XMqySMbCl5vyKhTWFLw==
  • Organization: I am not organized

Hello,

David, le mer. 12 mai 2021 13:04:43 +0200, a ecrit:
> if (status == cudaSuccess && cuda_mem_free < (size*2))
>
> In our use case, we tried to allocate roughly 2GB block on a card with
> 5,9GB of
> memory, but less than 4GB were available at that time, so this check
> succeeded
> and hence no memory was allocated.

> Is the '2' in the 'cuda_mem_free < (size*2)' there on purpose? We did not
> find
> anything related to this in the documentation.

It was a bit rough and excessive indeed. I have now made it rather a
~+10%.

Samuel



Archives gérées par MHonArc 2.6.19+.

Haut de le page