Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: nacl/Makefile

Issue 7821018: Add Richards and DeltaBlue benchmarks (Closed) Base URL: https://code.google.com/p/web-shootout/@master
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « js/worker.js ('k') | nacl/bench-framework.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 NACL_SDK_ROOT ?= /path/to/native_client_sdk 1 NACL_SDK_ROOT ?= /path/to/native_client_sdk
2 # NACL_SVN_PATH only needed if we want to build with glibc 2 # NACL_SVN_PATH only needed if we want to build with glibc
3 NACL_SVN_PATH ?= /path/to/native_client/svn 3 NACL_SVN_PATH ?= /path/to/native_client/svn
4 CC = gcc 4 CC = gcc
5 CXX = g++ 5 CXX = g++
6 BITS ?= 32 6 BITS ?= 32
7 LIB ?= newlib 7 LIB ?= newlib
8 8
9 9
10 ifeq ($(BITS), 64) 10 ifeq ($(BITS), 64)
(...skipping 24 matching lines...) Expand all
35 NACLCC = $(NACL_CC_PATH)/$(NACL_CC_BASE)-gcc 35 NACLCC = $(NACL_CC_PATH)/$(NACL_CC_BASE)-gcc
36 NACLCXX = $(NACL_CC_PATH)/$(NACL_CC_BASE)-g++ 36 NACLCXX = $(NACL_CC_PATH)/$(NACL_CC_BASE)-g++
37 CCFLAGS ?= -O3 -g -mfpmath=sse -msse3 -march=nocona -D_GNU_SOURCE 37 CCFLAGS ?= -O3 -g -mfpmath=sse -msse3 -march=nocona -D_GNU_SOURCE
38 CFLAGS = $(CCFLAGS) -std=gnu99 38 CFLAGS = $(CCFLAGS) -std=gnu99
39 CXXFLAGS = $(CCFLAGS) 39 CXXFLAGS = $(CCFLAGS)
40 LIBS = -lm -lpthread 40 LIBS = -lm -lpthread
41 LIBDIR = ../third_party/libinstall/$(BITS)/lib 41 LIBDIR = ../third_party/libinstall/$(BITS)/lib
42 42
43 43
44 BENCHMARKS := fannkuchredux fasta revcomp binarytrees knucleotide nbody \ 44 BENCHMARKS := fannkuchredux fasta revcomp binarytrees knucleotide nbody \
45 » » spectralnorm pidigits 45 » » spectralnorm pidigits richards deltablue
46 OTHER_OBJS = bench-framework benchstringio fasta_10k_ref_output 46 OTHER_OBJS = bench-framework benchstringio fasta_10k_ref_output
47 47
48 OBJS_NATIVE := $(BENCHMARKS:%=%.native.o) $(OTHER_OBJS:%=%.native.o) 48 OBJS_NATIVE := $(BENCHMARKS:%=%.native.o) $(OTHER_OBJS:%=%.native.o)
49 OBJS_NACL := $(BENCHMARKS:%=%.nacl.o) $(OTHER_OBJS:%=%.nacl.o) 49 OBJS_NACL := $(BENCHMARKS:%=%.nacl.o) $(OTHER_OBJS:%=%.nacl.o)
50 OBJS_PNACL := $(BENCHMARKS:%=%.bc) $(OTHER_OBJS:%=%.bc) 50 OBJS_PNACL := $(BENCHMARKS:%=%.bc) $(OTHER_OBJS:%=%.bc)
51 51
52 all: native nacl 52 all: native nacl
53 53
54 %.native.o: %.c 54 %.native.o: %.c
55 $(CC) $(ARCH_FLAG) -Iinclude -c $(CFLAGS) $< -o $@ 55 $(CC) $(ARCH_FLAG) -Iinclude -c $(CFLAGS) $< -o $@
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 95
96 run-native: 96 run-native:
97 ./benchmarks$(BITS) 97 ./benchmarks$(BITS)
98 run-nacl: 98 run-nacl:
99 $(NACL_CC_PATH)/sel_ldr_x86_$(BITS) -a benchmarks$(BITS).nexe 99 $(NACL_CC_PATH)/sel_ldr_x86_$(BITS) -a benchmarks$(BITS).nexe
100 100
101 .PHONY: clean-native clean-nacl clean-pnacl run-native run-nacl 101 .PHONY: clean-native clean-nacl clean-pnacl run-native run-nacl
102 102
103 .PRECIOUS: benchmarks32.nexe benchmarks64.nexe benchmarks32 benchmarks64 103 .PRECIOUS: benchmarks32.nexe benchmarks64.nexe benchmarks32 benchmarks64
OLDNEW
« no previous file with comments | « js/worker.js ('k') | nacl/bench-framework.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698