Disko Forum logo Login  |  Register  |  Lost Password
<< Start < Prev 1 2 3 Next > End >>
Slicing text corrumtion with SSE optimizations

Duran
Posts: 37
graphgraph

Slicing text corrumtion with SSE optimizations 6 Years ago  
Dear all,

Displaying a slicing text with SSE optimizations enabled causes a corruption in the text, but running the same application with no SSE optimizations, the slicing text is not corrupted.

My computer is an AMD64.

Joaquim Duran
 
  The administrator has disabled public write access.
Slicing text corrumtion with SSE optimizations

Stefan
Posts: 91
graph

Re:Slicing text corrumtion with SSE optimizations 6 Years ago  
Hi Joaquim,

which specific CPU are you using? Are you using the cpu in 32bit mode?

I tested the the routine on a intel atom and on a intel q6600. In both cases it seems to work correctly.

kind regards
Stefan
 
  The administrator has disabled public write access.
Slicing text corrumtion with SSE optimizations

Duran
Posts: 37
graphgraph

Re:Slicing text corrumtion with SSE optimizations 6 Years ago  
Stefan,

The computer is:

[qduran@casa ~]$ cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 2
model name : AMD Phenom(tm) 8450 Triple-Core Processor
stepping : 3
cpu MHz : 1100.000

and the compiler compiles for 64 bits:

[qduran@casa ~]$ g++ -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i586 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC)

Hope this helps!!

Joaquim Duran
 
  The administrator has disabled public write access.
Slicing text corrumtion with SSE optimizations

Stefan
Posts: 91
graph

Re:Slicing text corrumtion with SSE optimizations 6 Years ago  
Hi Joaquim,

could you also post the flags from cat /proc/cpuinfo?

kind regards
Stefan
 
  The administrator has disabled public write access.
Slicing text corrumtion with SSE optimizations

Duran
Posts: 37
graphgraph

Re:Slicing text corrumtion with SSE optimizations 6 Years ago  
Hello,

These are the flags:

flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc pni monitor cx16 lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs

Joaquim Duran
 
  The administrator has disabled public write access.
Slicing text corrumtion with SSE optimizations

Stefan
Posts: 91
graph

Re:Slicing text corrumtion with SSE optimizations 6 Years ago  
Hi Joaquim,

I would like you to do some tests on that topic. Please try to comment out the lines:

Code:

elif l.find('sse4a') != -1: env['CCFLAGS'].extend(['-msse4a', ...
In the SConstruct file. If this has no impact, try to reduce the optimization level (assuming you are compiling debug=n) please change the line
Code:

env['CCFLAGS'].extend(['-O3'])
to
Code:

env['CCFLAGS'].extend(['-O2'])
It seems that one of these options does not like our code for the blitting routines. My CPU is missing the sse4a flag from your setup. kind regards Stefan
 
 
Last Edit: 2009/09/06 23:04 By Stefan.
  The administrator has disabled public write access.
<< Start < Prev 1 2 3 Next > End >>
Powered by FireBoard
get the latest posts directly to your desktop