Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (29 sloc) 1.2 KB
From 01cb505c0db61a8f858567fca8d5ac580d5d5d11 Mon Sep 17 00:00:00 2001
From: William Douglas <william.douglas@intel.com>
Date: Tue, 12 Jun 2018 18:50:08 +0000
Subject: [PATCH 3/5] Use pybench to optimize python
Use pybench to guide PGO.
---
Makefile.pre.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 4c23c0e..baa1d0a 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -248,7 +248,7 @@ TCLTK_LIBS= @TCLTK_LIBS@
# The task to run while instrumented when building the profile-opt target.
# We exclude unittests with -x that take a rediculious amount of time to
# run in the instrumented training build or do not provide much value.
-PROFILE_TASK=-m test.regrtest --pgo
+PROFILE_TASK_PYBENCH=$(srcdir)/Tools/pybench/pybench.py -n 20
# report files for gcov / lcov coverage report
COVERAGE_INFO= $(abs_builddir)/coverage.info
@@ -500,7 +500,7 @@ build_all_generate_profile:
run_profile_task:
@ # FIXME: can't run for a cross build
- $(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK) || true
+ $(LLVM_PROF_FILE) $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK_PYBENCH) || true
build_all_merge_profile:
$(LLVM_PROF_MERGER)
--
2.17.0
You can’t perform that action at this time.