Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vsipl++] Compiling VSIPL++ on Cell PPE


  • To: Jules Bergmann <jules@xxxxxxxxxxxxxxxx>
  • Subject: Re: [vsipl++] Compiling VSIPL++ on Cell PPE
  • From: Hahn Kim <hgk@xxxxxxxxxx>
  • Date: Tue, 9 Oct 2007 11:31:00 -0400

Thanks for the feedback, configure now completes without error, but now I'm encountering problems with make.

When I add --with-lapack=no, configure completes:

> ./configure --prefix=<dir-containing-vsipl++>/sourceryvsipl++-1.3- mpich2-1.0.6-sal --with-mpi-prefix=<dir-containing-mpich2>/ mpich2-1.0.6 CXXFLAGS="-O2 -DMPICH_IGNORE_CXX_SEEK" --with-sal- include=/opt/MultiCorePlus/include --with-sal-lib=/opt/MultiCorePlus/ lib --enable-fft=sal --disable-builtin-atlas --with-lapack=no


When I run make, I get the following error:

...
g++ -c -I src -I ./src -I/data/PVTOL/vendor/ppc64/ Linux-2.6.22-0.ydl.rc4/mpich2-1.0.6/include -DVSIP_IMPL_MPI_H_TYPE=1 - I/data/PVTOL/vendor/ppc64/Linux-2.6.22-0.ydl.rc4/mpich2-1.0.6/ include -O2 -DMPICH_IGNORE_CXX_SEEK -I/data/PVTOL/ vendor/ppc64/Linux-2.6.22-0.ydl.rc4/mpich2-1.0.6/include - DVSIP_IMPL_PAR_SERVICE=1 -I/opt/MultiCorePlus/include - DVSIP_IMPL_HAVE_SAL=1 -DVSIP_IMPL_SAL_FFT=1 - 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=0 -O2 -DMPICH_IGNORE_CXX_SEEK -I./src -o src/vsip/initfin.o src/vsip/ initfin.cpp src/vsip/opt/sal/elementwise.hpp: In function ‘void vsip::impl::sal::vconv(const vsip::impl::sal::Sal_vector<float, vsip::impl::Any_type>&, const vsip::impl::sal::Sal_vector<char, vsip::impl::Any_type>&, vsip::length_type)’: src/vsip/opt/sal/elementwise.hpp:249: error: invalid conversion from ‘char* const’ to ‘signed char*’ src/vsip/opt/sal/elementwise.hpp:249: error: initializing argument 3 of ‘void vconvert_f32_s8x(float*, int, signed char*, int, float*, float*, int, int, int)’ src/vsip/opt/sal/elementwise.hpp: In function ‘void vsip::impl::sal::vconv(const vsip::impl::sal::Sal_vector<char, vsip::impl::Any_type>&, const vsip::impl::sal::Sal_vector<float, vsip::impl::Any_type>&, vsip::length_type)’: src/vsip/opt/sal/elementwise.hpp:256: error: invalid conversion from ‘char* const’ to ‘signed char*’ src/vsip/opt/sal/elementwise.hpp:256: error: initializing argument 1 of ‘void vconvert_s8_f32x(signed char*, int, float*, int, float*, float*, int, int, int)’
make: *** [src/vsip/initfin.o] Error 1


If I disable everything, then VSIPL++ builds to completion and I'm able to build and run example1:

./configure --prefix=/data/PVTOL/vendor/ppc64/Linux-2.6.22-0.ydl.rc4/ sourceryvsipl++-1.3-mpich2-1.0.6-nolapack --with-mpi-prefix=/data/ PVTOL/vendor/ppc64/Linux-2.6.22-0.ydl.rc4/mpich2-1.0.6 CXXFLAGS="-O2 - DMPICH_IGNORE_CXX_SEEK" --disable-builtin-atlas --with-lapack=no


This is good for now, it will let us use VSIPL++ in a functional manner. Later, it would be nice to be able to compile an optimized version linked to SAL. Any help is appreciated.

Hahn

On Oct 5, 2007, at 10:31 AM, Jules Bergmann wrote:

Don McCoy wrote:
Hahn Kim wrote:

Can you tell me why it's trying to configure ATLAS when I try to disable it? Any information is appreciated. Thanks!

> ./configure --prefix=<dir-containing-vsipl++>/sourceryvsipl+ +-1.3-mpich2-1.0.6-sal --with-mpi-prefix=<dir-containing-mpich2>/ mpich2-1.0.6 CXXFLAGS="-O2 -DMPICH_IGNORE_CXX_SEEK" --with-sal- include=/opt/MultiCorePlus/include --with-sal-lib=/opt/ MultiCorePlus/lib --enable-fft=sal --disable-builtin-atlas
I find this somewhat confusing myself and usually have to look it up each time. I looked in a current tree, but I believe this is true for 1.3 also: use --with-lapack=no or --with-lapack=simple- builtin for a lapack that doesn't need atlas.

FWIW, this looks like a quickstart documentation bug. It mentions --disable-builtin-atlas, but does not mention --with-lapack=no.

configure --help appears to get it right.

Don, can you fix the quickstart?

				thanks,
				-- Jules


--
Jules Bergmann
CodeSourcery
jules@xxxxxxxxxxxxxxxx
(650) 331-3385 x705


--
Hahn Kim
MIT Lincoln Laboratory   Phone: (781) 981-0940
244 Wood Street, S2-252  Fax: (781) 981-5255
Lexington, MA 02420      E-mail: hgk@xxxxxxxxxx