[LLVMbugs] [Bug 2494] New: bad performance vs. gcc in STAMP Kmeans

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jun 25 08:33:26 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2494

           Summary: bad performance vs. gcc in STAMP Kmeans
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: torvald at se.inf.tu-dresden.de
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1777)
 --> (http://llvm.org/bugs/attachment.cgi?id=1777)
Defines.common.mk

The program is the KMeans benchmark from the STAMP benchmark suite
(http://stamp.stanford.edu). Overwrite ./common/Defines.common.mk with the
attached file to make CC/LD customizable.

This happens on an Intel Q6600, Linux 32b.
gcc (GCC) 4.2.3 (Debian 4.2.3-5)
LLVM 2.3 and SVN trunk rev 52676


in ./kmeans, for
./kmeans -m40 -n40 -t0.00001 -i inputs/random-n65536-d32-c16.txt -p 1 :

make -f Makefile.seq clean

/tmp/stamp-0.9.8/kmeans$ LD='gcc -lm' make -f Makefile.seq
cc -g -Wall -pthread -O3 -I../lib -DOUTPUT_TO_STDOUT -c cluster.c -o cluster.o
cc -g -Wall -pthread -O3 -I../lib -DOUTPUT_TO_STDOUT -c common.c -o common.o
cc -g -Wall -pthread -O3 -I../lib -DOUTPUT_TO_STDOUT -c kmeans.c -o kmeans.o
cc -g -Wall -pthread -O3 -I../lib -DOUTPUT_TO_STDOUT -c normal.c -o normal.o
cc -g -Wall -pthread -O3 -I../lib -DOUTPUT_TO_STDOUT -c ../lib/mt19937ar.c -o
../lib/mt19937ar.o
cc -g -Wall -pthread -O3 -I../lib -DOUTPUT_TO_STDOUT -c ../lib/random.c -o
../lib/random.o
cc -g -Wall -pthread -O3 -I../lib -DOUTPUT_TO_STDOUT -c ../lib/thread.c -o
../lib/thread.o
gcc -lm  cluster.o common.o kmeans.o normal.o ../lib/mt19937ar.o
../lib/random.o ../lib/thread.o -lpthread -o kmeans

Runtime: approx. 15s


tmp/stamp-0.9.8/kmeans$ CC='llvm-gcc' LD='llvm-gcc -lm' make -f Makefile.seq
llvm-gcc -g -Wall -pthread -O3 -I../lib -DOUTPUT_TO_STDOUT -c cluster.c -o
cluster.o
llvm-gcc -g -Wall -pthread -O3 -I../lib -DOUTPUT_TO_STDOUT -c common.c -o
common.o
llvm-gcc -g -Wall -pthread -O3 -I../lib -DOUTPUT_TO_STDOUT -c kmeans.c -o
kmeans.o
llvm-gcc -g -Wall -pthread -O3 -I../lib -DOUTPUT_TO_STDOUT -c normal.c -o
normal.o
llvm-gcc -g -Wall -pthread -O3 -I../lib -DOUTPUT_TO_STDOUT -c
../lib/mt19937ar.c -o ../lib/mt19937ar.o
llvm-gcc -g -Wall -pthread -O3 -I../lib -DOUTPUT_TO_STDOUT -c ../lib/random.c
-o ../lib/random.o
llvm-gcc -g -Wall -pthread -O3 -I../lib -DOUTPUT_TO_STDOUT -c ../lib/thread.c
-o ../lib/thread.o
llvm-gcc -lm  cluster.o common.o kmeans.o normal.o ../lib/mt19937ar.o
../lib/random.o ../lib/thread.o -lpthread -o kmeans

Runtime: 35s


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list