Skip to content

Commit

Permalink
[GR-20753] Update white box distribution categorization
Browse files Browse the repository at this point in the history
PullRequest: graal/15965
  • Loading branch information
rudsberg committed Nov 10, 2023
2 parents e9b962c + 6e69c4a commit 01ac2d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
14 changes: 4 additions & 10 deletions compiler/mx.compiler/mx_graal_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import re
import os
from tempfile import mkstemp
import itertools

import mx
import mx_benchmark
Expand Down Expand Up @@ -495,8 +494,7 @@ def subgroup(self):

def filter_distribution(self, dist):
return super(JMHDistGraalCoreBenchmarkSuite, self).filter_distribution(dist) and \
not any(JMHDistWhiteboxBenchmarkSuite.whitebox_dependency(dist)) and \
not any(dep.name.startswith('com.oracle.truffle.enterprise.dispatch.jmh') for dep in dist.deps)
not JMHDistWhiteboxBenchmarkSuite.is_whitebox_dependency(dist)


mx_benchmark.add_bm_suite(JMHDistGraalCoreBenchmarkSuite())
Expand All @@ -514,16 +512,12 @@ def subgroup(self):
return "graal-compiler"

@staticmethod
def whitebox_dependency(dist):
return itertools.chain(
(dep.name.startswith('GRAAL') for dep in dist.deps),
(dep.name.startswith('jdk.graal.compiler') for dep in dist.archived_deps())
)
def is_whitebox_dependency(dist):
return hasattr(dist, 'graalWhiteboxDistribution') and dist.graalWhiteboxDistribution

def filter_distribution(self, dist):
return super(JMHDistWhiteboxBenchmarkSuite, self).filter_distribution(dist) and \
any(JMHDistWhiteboxBenchmarkSuite.whitebox_dependency(dist)) and \
not any(dep.name.startswith('com.oracle.truffle.enterprise.jmh') for dep in dist.deps)
JMHDistWhiteboxBenchmarkSuite.is_whitebox_dependency(dist)


def extraVmArgs(self):
Expand Down
1 change: 1 addition & 0 deletions compiler/mx.compiler/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@
],
"testDistribution" : True,
"maven": False,
"graalWhiteboxDistribution": True,
},

"GRAAL_COMPILER_MICRO_BENCHMARKS" : {
Expand Down

0 comments on commit 01ac2d3

Please sign in to comment.