[Scilab-Dev] How to list every variables inside the SciLab stack ?

Collette Yann ycollet at freesurf.fr
Thu May 21 14:34:27 CEST 2009


Vincent Lejeune a écrit :
> Hi,
>  
> I was wondering if there was a way to list the content of the stack, 
> in C, ie functions like "get_from_stack" and "get_next_from_stack" or 
> something like that.
> When I have a memory error from the GPU side, I'd like to have a look 
> at every pointer from the stack. I would have a custom stack of my 
> own, containing every pointer holding a reference to a matrix in GPU 
> memory. To be able to look in the stack would allow me to free 
> unecessary matrix that eat space on the GPU.
I was wondering if such a thing could be done via the function scistring 
(in stack-c.h) and call the scilab function "who('local')" and 
"who('global')"

YC



More information about the dev mailing list