help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: R: invoking the correct memory management from C files


From: Riccardo Corradini
Subject: Re: R: invoking the correct memory management from C files
Date: Wed, 5 May 2010 13:42:32 +0000 (GMT)

Could you please show an example?
Thanks for your patience
Respectfully
Riccardo

--- Mer 5/5/10, Peter L. Soendergaard <address@hidden> ha scritto:

Da: Peter L. Soendergaard <address@hidden>
Oggetto: Re: R: invoking the correct memory management from C files
A: "Riccardo Corradini" <address@hidden>
Cc: address@hidden
Data: Mercoledì 5 maggio 2010, 15:08

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]