I am doing project in Scilab (image processing) and it take 2h to complete to process a single image. So what I do? If I need to do parallel processing, how do I do it? Please share your knowledge with me. Thank you.
There are 3 different methods of running parallel operation in Scilab v5 outlined in the wiki.. Take a look at the following page - Parallel Computing in Scilab for examples..
Before you run to parallelism, you should first do some reasoning about your problem.
First, is 2 hours reasonable? Where is the time being spent? How optimized is your existing serial code? Do you control the precision of your calculations, cache or avoid expensive operations (such as transcendentals)? Are you accessing data in the hardware-optimal direction, tuned for cache size, or at least avoiding bad cache effects? If, for instance, your code is actually limited by memory performance, then parallelism is unlikely to help at all (on a single host).