Skip to content

Commit e88dad9

Browse files
authored
Merge pull request #284 from Hardcode84/fix-no-validate
Do not request ref_framework if validation is not needed
2 parents 432d276 + c69de9c commit e88dad9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

dpbench/infrastructure/benchmark_runner.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,13 @@ def run_benchmark_in_sub_process(
318318

319319
brc = BaseRunConfig.from_instance(rc)
320320

321-
brc.ref_framework: cfg.Framework = [
322-
f
323-
for f in cfg.GLOBAL.frameworks
324-
if rc.benchmark.reference_implementation_postfix
325-
in {p.postfix for p in f.postfixes}
326-
][0]
321+
if rc.validate:
322+
brc.ref_framework: cfg.Framework = [
323+
f
324+
for f in cfg.GLOBAL.frameworks
325+
if rc.benchmark.reference_implementation_postfix
326+
in {p.postfix for p in f.postfixes}
327+
][0]
327328

328329
conn.send(brc)
329330

0 commit comments

Comments
 (0)