[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: R: invoking the correct memory management from C files
From: |
Peter L. Soendergaard |
Subject: |
Re: R: invoking the correct memory management from C files |
Date: |
Wed, 05 May 2010 15:08:38 +0200 |
fre, 23 04 2010 kl. 14:11 +0000, skrev Riccardo Corradini:
> >How do I best define ltfat_malloc and friends for use with Octave?
>
> I am not sure if it can be of real help, but ...did you use the
> OCTAVE_LOCAL_BUFFER macro? I found it very useful to handle some C MPI
> functions
>
>
OCTAVE_LOCAL_BUFFER seems to be the right answer.
Is there a benefit in trying to 'free' the memory again? The code
already has wrapper functions in the correct places to free the memory.
Should I just make the free-wrappers do nothing?
Cheers,
Peter.
- Re: R: invoking the correct memory management from C files,
Peter L. Soendergaard <=