Adapt to recent changes in polly.
[llvm-testsuite/polly-testsuite.git] / TEST.vtl.Makefile
blob0aa1eb3252160f2269a2de7141126d5bd12abac8
1 ##===- TEST.vtl.Makefile -----------------------------------*- Makefile -*-===##
3 # Makefile for getting performance metrics using Intel's VTune.
5 ##===----------------------------------------------------------------------===##
7 TESTNAME = $*
9 VTL := /opt/intel/vtune/bin/vtl
12 # Events: These will need to be modified for every different CPU that is used
13 # (i.e. the Pentium 3 on Cypher has a different set of available events than
14 # the Pentium 4 on Zion).
16 P4_EVENTS := "-ec en='2nd Level Cache Read Misses' en='2nd-Level Cache Read References'"
17 P3_EVENTS := "-ec en='L2 Cache Request Misses (highly correlated)'"
19 EVENTS := $(P4_EVENTS)
22 # Generate events for LLC
24 #$(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
25 #test.$(TEST).%: Output/%.llc
26         #@echo "========================================="
27         #@echo "Running '$(TEST)' test on '$(TESTNAME)' program"
28         #$(VERB) $(VTL) activity $* -d 50 -c sampling -o $(EVENTS) -app $<
29         #-$(VERB) $(VTL) run $*
30         #-$(VERB) $(VTL) view > $@
31         #$(VERB)  $(VTL) delete $* -f
35 # Generate events for CBE
37 $(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
38 test.$(TEST).%: Output/%.cbe
39         @echo "========================================="
40         @echo "Running '$(TEST)' test on '$(TESTNAME)' program"
41 ifeq ($(RUN_OPTIONS),)
42         $(VERB) cat $(STDIN_FILENAME) | $(VTL) activity $* -d 50 -c sampling -o $(EVENTS) -app $<
43 else
44         $(VERB) cat $(STDIN_FILENAME) | $(VTL) activity $* -d 50 -c sampling -o $(EVENTS) -app $<,"$(RUN_OPTIONS)"
45 endif
46         -$(VERB) $(VTL) run $*
47         -$(VERB) $(VTL) view > $@
48         $(VERB)  $(VTL) delete $* -f