parallel run not working (scilab 5.3.2 under centos 5.6)

Antoine Monmayrant antoine.monmayrant at laas.fr
Thu May 19 15:23:22 CEST 2011


Hi everyone,

I just upgraded the scilab version we use in our lab to 5.3.2.
It seemed to work fine until we tried to use parallel_run.
This fails miserably on both our real case scenario and on the first 
example found in the help for parallel_run.
It seems to be linked to the version of Glibc (2.5) that is too old.
Do you know any workaround or any way to install in local another 
version of Glibc (2.6) to be used by scilab?

Cheers,

Antoine

PS: here is what I got when trying to run the example:

-->function make_compiled_function(name, ext, code)
-->  filename=name+ext;
-->  mputl(code, filename);
-->  ilib_for_link(fun_name,filename,[],"c");
-->  exec loader.sce;
-->  mdelete(filename);
-->endfunction

-->

-->fun_name='test_fun';

-->c_prog=['#include <math.h>'
-->'void '+fun_name+'(void const* const* args, void *const* res) {'
-->'*((double*)*res)= (((double*)args[0])[0])*(((double*)args[0])[0]);'
-->'}'];

-->make_compiled_function(fun_name, '.c',c_prog);
    Generate a loader file
    Generate a Makefile
    ilib_gen_Make: configure : Generate Makefile.
    ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR
    ilib_gen_Make: Copy test_fun.c to TMPDIR
    ilib_gen_Make: Modification of the Makefile in TMPDIR.
    Running the Makefile
    Generate a cleaner file
Shared archive loaded.
Link done.

-->

-->res=parallel_run(1:10, fun_name);// res = [1., 4., 9., 16., 25., 36., 
49., 64., 81., 100.];
A previous error has been detected while loading libsciparallel.so: 
cannot open shared object file
                                  !--error 999
Impossible to load libsciparallel.so library: 
/usr/local/diodesLASER/softs/scilab-5.3.2/share/scilab/modules/parallel/.libs/libsciparallel.so: 
cannot open shared object file: No such file or directory







More information about the users mailing list