[vsipl++] num_processors() reporting the wrong number fo Processors

Stefan Seefeld stefan at codesourcery.com
Fri Oct 9 17:49:33 UTC 2009


On 10/09/2009 05:03 AM, Speed Erek wrote:
> Hi,
>
> I'm running a parrallel vsip++ program on a Xenon with 2 processors and
> 8 cores. Installed is the light version of vsipl++ with no options to
> ./configure. In my program I print out the return value of
> num_processors() for verification purposes and it returns 1 instead of
> the 8 I might expect.

Can you elaborate on what you mean by "running a parallel vsip++ 
program" ? Are you running it with mpirun ?


> I figure this is could be due to two reasons:
>
> 1. VSIPL++ lite doesn't support parallel features. It'd be nice if the
> differences in the lite version were specified somewhere but the problem
> is fixed once we get the commercial version.

That's a fair point. I believe the offered functionality (as far as the 
API is concerned) is the same, though the 'Lite' edition may not provide 
as many platform-specific optimizations, and thus run slower there.

> 2. During installation I was supposed to include an option to enable
> parallel support but I didn't and so it doesn't work. I didn't find
> anything in the "Getting Started" guide which mentioned enabling
> built-in parallel support (just external libraries like MPI) but if this
> is the case I would be ever grateful if someone could provide the
> correct options to use.

You may enable parallel support by specifying --enable-parallel. By 
default, configure probes to find a suitable MPI installation.

However, as you have requested an evaluation license recently, you will 
get a binary version which is configured and built with all the right 
flags, so you don't have to do any of this yourself.

Thanks,
		Stefan


-- 
Stefan Seefeld
CodeSourcery
stefan at codesourcery.com
(650) 331-3385 x718



More information about the vsipl++ mailing list