[vsipl++] pwarp - simd_spu fixes

Brooks Moses brooks at codesourcery.com
Sat Dec 15 02:48:03 UTC 2007


Stefan Seefeld wrote, at 12/14/2007 5:55 PM:
> Jules Bergmann wrote:
>> Somehow I managed to break lots of bits in simd_spu.hpp at the very last
>> minute before committing -- and I thought I tested this!
>>
>> I also appear to have missed checking in my changelog.
>>
>> Patch applied.
> 
> Jules, it looks as if you didn't check in the change to configure.ac:
> 
> it doesn't define CXX_SPU, and so the command for compiling C++ SPU
> kernels is broken now.

This was getting in my way for working on finishing up the AFRL
integration and debugging, so I fixed it with the attached obvious patch
(committed).  :)

My compiles still fall over trying to build the examples, though:
> compiling examples/fconv.o
> ppu-g++ -c -I src -I ../trunk-afrl/src   -I/opt/ibm/cell-sdk/prototype/sysroot/usr/include -DVSIP_CBE_SDK_VERSION=210 -DVSIP_IMPL_FFTW3=1 -DVSIP_IMPL_PAR_SERVICE=0 -DVSIP_IMPL_FFT_USE_FLOAT=1 -DVSIP_IMPL_FFT_USE_DOUBLE=1 -DVSIP_IMPL_FFT_USE_LONG_DOUBLE=1 -DVSIP_IMPL_PROVIDE_FFT_FLOAT=1 -DVSIP_IMPL_PROVIDE_FFT_DOUBLE=1 -DVSIP_IMPL_PROVIDE_FFT_LONG_DOUBLE=1 -I/usr/include/atlas -DVSIP_IMPL_USE_CBLAS=1 -m32 -mcpu=cell -maltivec -funswitch-loops -fgcse-after-reload --param max-inline-insns-single=2000 --param large-function-insns=6000 --param large-function-growth=800 --param inline-unit-growth=300 -I../trunk-afrl/src -o examples/fconv.o ../trunk-afrl/examples/fconv.cpp
> ../trunk-afrl/examples/fconv.cpp: In function 'void fconv_example()':
> ../trunk-afrl/examples/fconv.cpp:78: error: reference to 'impl' is ambiguous
> ../trunk-afrl/src/vsip_csl/error_db.hpp:36: error: candidates are: namespace vsip_csl::impl { }
> ../trunk-afrl/src/vsip/support.hpp:145: error:                 namespace vsip::impl { }
> ../trunk-afrl/examples/fconv.cpp:78: error: template argument 3 is invalid
> ../trunk-afrl/examples/fconv.cpp:78: error: invalid type in declaration before ';' token
> ../trunk-afrl/examples/fconv.cpp:79: error: initializer expression list treated as compound expression
> ../trunk-afrl/examples/fconv.cpp:83: error: 'fconv' cannot be used as a function
> ../trunk-afrl/examples/fconv.cpp:88: error: 'fconv' cannot be used as a function
> make: *** [examples/fconv.o] Error 1

- Brooks


Index: ../trunk-afrl/ChangeLog
===================================================================
--- ../trunk-afrl/ChangeLog     (revision 189488)
+++ ../trunk-afrl/ChangeLog     (working copy)
@@ -1,3 +1,7 @@
+2007-12-14  Brooks Moses  <brooks at codesourcery.com>
+
+       * configure.ac (CXX_SPU): Define.
+
 2007-12-13  Don McCoy  <don at codesourcery.com>

        * examples/extdata.cpp: New file.  Example demonstrating the
Index: ../trunk-afrl/configure.ac
===================================================================
--- ../trunk-afrl/configure.ac  (revision 189488)
+++ ../trunk-afrl/configure.ac  (working copy)
@@ -584,6 +584,7 @@
   cxx_compiler_list="ppu-g++ g++ c++"
   c_compiler_list="ppu-gcc gcc cc"
   AC_CHECK_PROGS(CC_SPU, [spu-gcc])
+  AC_CHECK_PROGS(CXX_SPU, [spu-g++])
   AC_CHECK_PROGS(EMBED_SPU, [ppu-embedspu embedspu])
 else
   # Use autoconf default lists




More information about the vsipl++ mailing list