[Scilab-users] atomsLoad

Stéphane Mottelet stephane.mottelet at utc.fr
Mon Jan 4 18:09:17 CET 2021


Le 04/01/2021 à 18:01, Jean-Yves Baudais a écrit :
> The difference between emd_toolbox-1.2-1 and emd_toolbox-1.3 are the "void *pvApiCtx" added in cemdc.c, cemdc2.c, cemdc_fix.c, cemdc2_fix.c, emdc.c and emdc_fix.c. Could that be the source of the memory problem?

Oh yes I didn't remember those ones. It has nothing to do with memory 
allocation, this is just a required explicit argument in Scilab 6 API. 
Otherwise you won't be able to compile the gateways. As I already said 
the memory leak is just a feature of the original source...

S.


>
> Jean-Yves
>
> ----- Original Message -----
>> From: "Jean-Yves Baudais" <Jean-Yves.Baudais at insa-rennes.fr>
>> To: "Users mailing list for Scilab" <users at lists.scilab.org>
>> Sent: Monday, 4 January, 2021 16:16:42
>> Subject: Re: [Scilab-users] atomsLoad
>> ----- Original Message -----
>>> From: "Stéphane Mottelet" <stephane.mottelet at utc.fr>
>>> Le 04/01/2021 à 15:55, Jean-Yves Baudais a écrit :
>>>> It remains one problem: the memory used always increases. If emd() function is
>>>> ran multiple times, my 8G mem is fulfilled by scilab and of course scilab
>>>> crashes. Maybe this comes from the modified sources of emd_toolbox done by
>>>> Stephane Mottelet?
>>> Surely not. I just removed one obsolete #include and didn't touch
>>> anything else. The memory leak was already present in the original source...
>>
>> I checked "diff" of sci files in emd_toolbox-1.3 and emd_toolbox-1.2.1 (the one
>> working on scilab-5.5.2). The differences I found are about emd_ prefix added
>> to function names (and the incomprehensible remove of moc_fliplr). I will check
>> the c code.
>>
>> Jean-Yves
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users

-- 
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet




More information about the users mailing list