Skip to content

Commit 3662b43

Browse files
committed
tiny tweaks for benchmark tags
1 parent ffc60bf commit 3662b43

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

devops/scripts/benchmarks/benches/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def name(self):
110110
raise NotImplementedError()
111111

112112
def description(self):
113-
return "No description provided."
113+
return ""
114114

115115
def notes(self) -> str:
116116
return None

devops/scripts/benchmarks/benches/compute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ def additionalMetadata(self) -> dict[str, BenchmarkMetadata]:
8484
"The first layer is the Level Zero API, the second is the Unified Runtime API, and the third is the SYCL API.\n"
8585
"The UR v2 adapter noticeably reduces UR layer overhead, also improving SYCL performance.\n"
8686
"Work is ongoing to reduce the overhead of the SYCL API\n",
87-
tags=['submit', 'micro', 'sycl', 'ur', 'l0']
87+
tags=['submit', 'micro', 'sycl', 'ur', 'L0']
8888
),
8989
"SinKernelGraph": BenchmarkMetadata(
9090
type="group",
9191
unstable="This benchmark combines both eager and graph execution, and may not be representative of real use cases.",
92-
tags=['submit', 'micro', 'sycl', 'ur', 'L0']
92+
tags=['submit', 'memory', 'proxy', 'sycl', 'ur', 'L0', 'graph']
9393
),
9494
"SubmitGraph": BenchmarkMetadata(
9595
type="group",

devops/scripts/benchmarks/html/scripts.js

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -628,21 +628,19 @@ function setupToggles() {
628628

629629
function setupTagFilters() {
630630
tagFiltersContainer = document.getElementById('tag-filters');
631+
632+
const allTags = [];
631633

632-
// Get all unique tags from benchmark metadata
633-
const allTags = new Set();
634-
635-
for (const [key, metadata] of Object.entries(benchmarkMetadata)) {
636-
if (metadata.tags) {
637-
metadata.tags.forEach(tag => allTags.add(tag));
634+
if (benchmarkTags) {
635+
for (const tag in benchmarkTags) {
636+
if (!allTags.includes(tag)) {
637+
allTags.push(tag);
638+
}
638639
}
639640
}
640-
641-
// Sort tags alphabetically
642-
const sortedTags = Array.from(allTags).sort();
643-
641+
644642
// Create tag filter elements
645-
sortedTags.forEach(tag => {
643+
allTags.forEach(tag => {
646644
const tagContainer = document.createElement('div');
647645
tagContainer.className = 'tag-filter';
648646

0 commit comments

Comments
 (0)