Skip to content

Commit c69de9c

Browse files
committed
do not request ref_framework if validation is not needed
1 parent 432d276 commit c69de9c

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)