Skip to content
Snippets Groups Projects
Commit 4a4eb2e7 authored by Nordine Feddal's avatar Nordine Feddal
Browse files

generate a list of gpu jobs object

parent d1ada196
No related branches found
No related tags found
No related merge requests found
......@@ -5,11 +5,13 @@ import re # Regex
from src.gputask.gputask import GPUTaskParams, GPUTask
from src.gpujob.gpujob import GPUJobParams, GPUJob
from src.gpusched_result.gpusched_result import GPUSchedResultStep, GPUSchedStepParams
relation_job_id_task_id = dict()
relation_task_id_task_name = dict()
list_gpu_tasks_object = []
list_gpusched_step_object = []
list_gpu_jobs_object = []
"""
Parse a file to retrieve GPU task information.
......@@ -92,7 +94,9 @@ def parse_jobs(args):
job_attributes[GPUJobParams.RELATIVE_DEADLINE_IDX]
)
relation_job_id_task_id[currJob.job_id] = currJob.related_task_id
list_gpu_jobs_object.append(currJob)
print(relation_job_id_task_id)
GPUSchedStepParams.LIST_JOBS_OBJECT = list_gpu_jobs_object
def parse_sched_order(args):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment