[llvm-commits] CVS: poolalloc/test/TEST.pavtl.Makefile

John Criswell criswell at cs.uiuc.edu
Tue Mar 2 13:29:01 PST 2004


Changes in directory poolalloc/test:

TEST.pavtl.Makefile added (r1.1)

---
Log message:

Initial commit of the poolalloc vtune Makefile.



---
Diffs of the changes:  (+66 -0)

Index: poolalloc/test/TEST.pavtl.Makefile
diff -c /dev/null poolalloc/test/TEST.pavtl.Makefile:1.1
*** /dev/null	Tue Mar  2 13:28:36 2004
--- poolalloc/test/TEST.pavtl.Makefile	Tue Mar  2 13:28:26 2004
***************
*** 0 ****
--- 1,66 ----
+ ##===- test/Programs/TEST.vtl.Makefile ---------------------*- Makefile -*-===##
+ #
+ # Makefile for getting performance metrics using Intel's VTune.
+ #
+ ##===----------------------------------------------------------------------===##
+ 
+ TESTNAME = $*
+ 
+ VTL := /opt/intel/vtune/bin/vtl
+ 
+ #
+ # Events: These will need to be modified for every different CPU that is used
+ # (i.e. the Pentium 3 on Cypher has a different set of available events than
+ # the Pentium 4 on Zion).
+ #
+ P4_EVENTS := "-ec en='2nd Level Cache Read Misses' en='2nd-Level Cache Read References'"
+ P3_EVENTS := "-ec en='L2 Cache Request Misses (highly correlated)'"
+ 
+ EVENTS := $(P4_EVENTS)
+ 
+ #
+ # Generate events for LLC
+ #
+ #$(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
+ #test.$(TEST).%: Output/%.llc
+ 	#@echo "========================================="
+ 	#@echo "Running '$(TEST)' test on '$(TESTNAME)' program"
+ 	#$(VERB) $(VTL) activity $* -d 50 -c sampling -o $(EVENTS) -app $<
+ 	#-$(VERB) $(VTL) run $*
+ 	#-$(VERB) $(VTL) view > $@
+ 	#$(VERB)  $(VTL) delete $* -f
+ 
+ test:: $(PROGRAMS_TO_TEST:%=test.$(TEST).pa.%)
+ 
+ #
+ # Generate events for Pool Allocated CBE
+ #
+ $(PROGRAMS_TO_TEST:%=test.$(TEST).pa.%): \
+ test.$(TEST).pa.%: Output/%.poolalloc.cbe
+ 	@echo "========================================="
+ 	@echo "Running '$(TEST)' test on '$(TESTNAME)' program"
+ ifeq ($(RUN_OPTIONS),)
+ 	$(VERB) cat $(STDIN_FILENAME) | $(VTL) activity $* -d 50 -c sampling -o $(EVENTS) -app $<
+ else
+ 	$(VERB) cat $(STDIN_FILENAME) | $(VTL) activity $* -d 50 -c sampling -o $(EVENTS) -app $<,"$(RUN_OPTIONS)"
+ endif
+ 	-$(VERB) $(VTL) run $*
+ 	-$(VERB) $(VTL) view > $@
+ 	$(VERB)  $(VTL) delete $* -f
+ 
+ #
+ # Generate events for Pool Allocated CBE
+ #
+ $(PROGRAMS_TO_TEST:%=test.$(TEST).%): \
+ test.$(TEST).%: Output/%.cbe
+ 	@echo "========================================="
+ 	@echo "Running '$(TEST)' test on '$(TESTNAME)' program"
+ ifeq ($(RUN_OPTIONS),)
+ 	$(VERB) cat $(STDIN_FILENAME) | $(VTL) activity $* -d 50 -c sampling -o $(EVENTS) -app $<
+ else
+ 	$(VERB) cat $(STDIN_FILENAME) | $(VTL) activity $* -d 50 -c sampling -o $(EVENTS) -app $<,"$(RUN_OPTIONS)"
+ endif
+ 	-$(VERB) $(VTL) run $*
+ 	-$(VERB) $(VTL) view > $@
+ 	$(VERB)  $(VTL) delete $* -f
+ 





More information about the llvm-commits mailing list