Skip to content

Commit f88c3e9

Browse files
authored
Merge pull request #76 from wfcommons/flowcept_improvements
Swift/t with Flowcept
2 parents 68d7ce0 + 69723a6 commit f88c3e9

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • wfcommons/wfbench/translator/templates/swift_t_templates

wfcommons/wfbench/translator/templates/swift_t_templates/workflow.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ task_name = "%s"
8585
files_list = ["%s"]
8686
gpu_work = int(%i)
8787
cpu_work = int(%i)
88-
cpu_threads = int(10 * %f)
88+
percent_cpu = %f
89+
cpu_threads = int(10 * percent_cpu)
8990
output_data = {"%s": int(%i)}
9091
dep = %i
9192
workflow_id = "%s"
@@ -98,7 +99,11 @@ if 'workflow_id':
9899
start_persistence=False, save_workflow=False)
99100
fc.start()
100101
fc_task = FlowceptTask(workflow_id=workflow_id, used={
101-
'workflow_id': workflow_id
102+
'workflow_id': workflow_id,
103+
'name': task_name,
104+
'percent-cpu': percent_cpu,
105+
'cpu-work': cpu_work,
106+
'gpu-work': gpu_work
102107
})
103108
104109
logging.info(f"Starting {task_name} Benchmark on {socket.gethostname()}")

0 commit comments

Comments
 (0)