MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / compute

Function compute

benchmarks/src/cli.py:68–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 has_work = has_work_left(workdir, descriptors)
67
68 def compute():
69 if has_work and not postprocess_only:
70 database = run_benchmarks_with_postprocessing(workdir, descriptors)
71 else:
72 database = load_or_create_database(workdir)
73
74 # Keep only results that we are interested in, there might be some old stale results
75 identifiers = [instance.identifier for instance in create_benchmark_instances(descriptors, workdir=workdir)]
76 database = database.filter(identifiers)
77 case.postprocess(workdir=workdir, database=database)
78
79 if not postprocess_only and has_work and slurm_cli is not None:
80 run_in_slurm(

Callers 1

run_test_caseFunction · 0.70

Calls 5

load_or_create_databaseFunction · 0.85
filterMethod · 0.80
postprocessMethod · 0.45

Tested by

no test coverage detected