[vsipl++] [patch] SSE on amd64, other config hax

Nathan (Jasper) Myers ncm at codesourcery.com
Wed Dec 21 07:38:23 UTC 2005


On Wed, Dec 21, 2005 at 12:13:15AM -0500, Jules Bergmann wrote:
> 
> Nathan (Jasper) Myers wrote:
> >Patch below makes FFTW3 use SSE/SSE2 on x86-64, and cleans up some
> >config file and minor build details.  OK?
> 
> Looks good, please check it in.  Do the x86-64 changes work on Sethra? 

Hmm, on cugel, built with /home/jules/local/x86_64/gcc-4.0.1/bin/g++...

qmtest run fft.cpp   PASS
qmtest run fftm.cpp  FAIL

Looking into the failure, something is odd.
In particular, at line 258 of fftm.cpp, it calls error_db.  In
the second loop there, line 162, with j=4 and i=1, val is reported
in gdb as 0, but is 0x7ff0000000000000.  Furthermore,

  (gdb) p v1.get(j,i)
  $45 = {_M_value = -2.80966903e+29 + 7.42688186e-44 * I}
  (gdb) p v2.get(j,i)
  $46 = {_M_value = 2.47443301e-38 + 0 * I}
  (gdb) p v1.get(j,i) - v2.get(j,i)
  Attempt to take address of value not located in memory.
  (gdb) p v1.block().data_[4*18 + 1]
  $59 = {_M_value = -1.39658792e-14 + -6.5881545e-16 * I}
  (gdb) p v2.block().data_[4*18 + 1]
  $60 = {_M_value = -1.3965925e-14 + 0 * I}

I will build with gnu-toolchains/x86_64-unknown-linux-gnu/gcc-3.4.4/bin/g++
and see what happens.

Incidentally, I also did:

Index: tests/context.in
===================================================================
RCS file: /home/cvs/Repository/vpp/tests/context.in,v
retrieving revision 1.4
diff -u -p -r1.4 context.in
--- tests/context.in    1 Dec 2005 16:39:27 -0000       1.4
+++ tests/context.in    21 Dec 2005 07:35:55 -0000
@@ -1,8 +1,8 @@
 CompilerTable.languages= cxx
 CompilerTable.cxx_kind= GCC
 CompilerTable.cxx_path= @CXX@
-CompilerTable.cxx_options= -I at abs_top_builddir@/src -I at abs_top_srcdir@/src @CPP FLAGS@ @INT_CPPFLAGS@ @CXXFLAGS@
-CompilerTable.cxx_ldflags= @LDFLAGS@ @INT_LDFLAGS@ @abs_top_builddir@/src/vsip/ libvsip.a @LIBS@
+CompilerTable.cxx_options= -I at abs_top_builddir@/src -I at abs_top_srcdir@/src @INT _CPPFLAGS@ @CPPFLAGS@ @CXXFLAGS@
+CompilerTable.cxx_ldflags= @INT_LDFLAGS@ @LDFLAGS@ @abs_top_builddir@/src/vsip/ libvsip.a @LIBS@
 GPPInit.options=
 GPPInit.library_directories= 
 DejaGNUTest.target= @host@

Nathan Myers
ncm



More information about the vsipl++ mailing list