[vsipl++] [patch] Cell fixes

Stefan Seefeld stefan at codesourcery.com
Fri Mar 16 15:32:54 UTC 2007


Jules Bergmann wrote:

>  - Pulls additional command line arguments from the SVPP_OPT environment
>    variable.
> 
>     export SVPP_OPTS="--svpp-num-spes 1"
>     ./run-program
> 
>    Is equiv to
> 
>     ./run-program --svpp-num-spes 1
> 
>    I added this to run 'make check' without using all the 8 SPEs, but it
>    should be useful for other things as well.

I'm not sure the VSIPL++ library is the best place to do this. If users
want to pass extra arguments by default, why can't they just write a little
wrapper script themselves ? (We may even provide a generic wrapper to do
this, if there is a common use case for it.)
My point is that (shell) scripts are much better suited to do this kind of
command-line argument / environment meddling than C++ code. We could even
make it work more easily for windows that way. :-)


Regards,
		Stefan

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



More information about the vsipl++ mailing list