Skip to content

AutoPerf is not annotating functions #4

@medawsonjr

Description

@medawsonjr

I'm running an "autoperf detect 10" between to branches, but I don't see anything in the "git stash list" after the annotation step has completed; nor does the output show that the annotation step failed at all. Also, the ".autoperf" subdirectory has both *.json files correctly populated with the diffs between the two branches, so it's not like it's unaware of where the annotations should be added. Is there a helpful debugging option or series of recommended troubleshooting steps to see why this annotation isn't happening?

Python version configured via Miniconda3 is 3.8.2. OS is CentOS Linux release 7.8.2003. The baseline branch is "harness_change_only" and the branch I'm benchmarking for regressions is "book_performance".

Here's my config.ini:

[build]
cmd = source ~/.bashrc && cm && m
dir = .

[clean]
cmd =

[workload]
cmd = taskset -c 13 ~/prod/bin/LiveMboBookHarness -c ~/LiveMboBookHarness/config.Harness.optoa.ES
dir = .

[git]
main = harness_change_only

[model]
hidden = [16, 8]
encoding = 4
activation = tanh
filename = trained_network

[training]
epochs = 12
batch_size = 64
optimizer = Adam
learning_rate = 1e-05
loss = mean_squared_error
noise = 0.25
scale_factor = 1.0

[detection]
threshold = 0.05

Here's the output from attempting to run "autoperf detect 10":

mdawson@dev02 (book_performance %=) src $ autoperf detect 10
[14:54:36] WARNING  Checkpoint not found, starting from scratch.                                                                           __init__.py:167
           INFO     State - [DIFF]                                                                                                         __main__.py:178
           DEBUG    Popen(['git', 'diff', 'harness_change_only..book_performance', '-U0', '--diff-filter=M'], cwd=/home/mdawson/prod/whdev,     cmd.py:721
                    universal_newlines=False, shell=None, istream=None)
           INFO     Generating diff between harness_change_only and book_performance branches.                                           annotation.py:404
           INFO     State - [STASH]                                                                                                        __main__.py:178
           DEBUG    Popen(['git', 'stash'], cwd=/home/mdawson/prod/whdev, universal_newlines=False, shell=None, istream=None)                   cmd.py:721
           DEBUG    Popen(['git', 'checkout', 'harness_change_only'], cwd=/home/mdawson/prod/whdev, universal_newlines=False, shell=None,       cmd.py:721
                    istream=None)
           INFO     State - [ANNOTATE]                                                                                                     __main__.py:178
           INFO     Splitting tasks across 14 processes.                                                                                 annotation.py:354
           WARNING                                                                                                                          parsing.py:321
                    No Makefile found.
           INFO     No CFLAGS specified.                                                                                                    parsing.py:323
           INFO     No CFLAGS specified.                                                                                                    parsing.py:323
           INFO     No CFLAGS specified.                                                                                                    parsing.py:323
           INFO     No CFLAGS specified.                                                                                                    parsing.py:323
           INFO     ClangParser initialized.                                                                                             annotation.py:432
           INFO     Injecting AutoPerf annotations.                                                                                      annotation.py:377

â­âââââââââââââââââââââââ Progress âââââââââââââââââââââââââ®
â0/0 ââââââââââââââââââââââââââââââââââââââââ   0% -:--:--â
â°ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ¯
â­ââââââââââââââââââ Directory Structure âââââââââââââââââââ®
ââï¸  src/                                                  â
â°ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ¯
           INFO     State - [BUILD]                                                                                                        __main__.py:178

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions