-
Notifications
You must be signed in to change notification settings - Fork 797
[CI][Bench] Implement exponentially weighted moving average for SYCL nightly regression CI #18766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+113
−8
Merged
Changes from 9 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
9893691
Implement EWMA
ianayl 9d96caa
Merge branch 'sycl' of https://github.com/intel/llvm into ianayl/benc…
ianayl ce55614
Merge branch 'sycl' of https://github.com/intel/llvm into ianayl/benc…
ianayl 7109f8a
Fix typo
ianayl d6e7e66
Fix import
ianayl 6b52f0f
add verbose output
ianayl d00c6bb
fix bug
ianayl 5f2758d
use verbose option
ianayl 354174e
formatting
ianayl 96130f5
fix message not including ewma
ianayl d5f541b
Merge branch 'sycl' of https://github.com/intel/llvm into ianayl/benc…
ianayl 8f284c2
Merge branch 'sycl' of https://github.com/intel/llvm into ianayl/benc…
ianayl 2b63e28
Merge branch 'sycl' of https://github.com/intel/llvm into ianayl/benc…
ianayl fc345dc
Lower smoothing factor
ianayl 78bd541
adjust alpha again
ianayl 50df0ee
Merge branch 'sycl' of https://github.com/intel/llvm into ianayl/benc…
ianayl 893334a
Raise smoothing factor again due to recent regressions
ianayl ffba7fb
Shrink time considered from 30 days to 7, lower smoothing factor
ianayl 95ad72d
Merge branch 'sycl' of https://github.com/intel/llvm into ianayl/benc…
ianayl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import sys | ||
import os | ||
|
||
sys.path.append(f"{os.path.dirname(__file__)}/../") | ||
from options import options | ||
from utils.aggregate import * | ||
|
||
|
||
def run_testcase(aggregator: Aggregator, src: list, expected: float) -> bool: | ||
aggr = aggregator() | ||
for n in src: | ||
aggr.add(n) | ||
res = aggr.get_avg() | ||
if res != expected: | ||
print(f"Failed: {aggregator}, {src} -- expected {expected}, got {res}") | ||
return False | ||
return True | ||
|
||
|
||
def test_EWMA(): | ||
options.EWMA_smoothing_factor = 0.5 | ||
testcases = [ | ||
([], None), | ||
([100], 100), | ||
([100, 100, 100, 100, 100], 100), | ||
([100, 105, 103, 108, 107], 106.1875), | ||
] | ||
successes = 0 | ||
fails = 0 | ||
for t in testcases: | ||
if not run_testcase(EWMA, *t): | ||
fails = fails + 1 | ||
else: | ||
successes = successes + 1 | ||
print(f"EWMA test: {successes} successes, {fails} fails.") | ||
|
||
|
||
if __name__ == "__main__": | ||
test_EWMA() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.