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

call init functions

parent 44215ba9
Branches
No related tags found
No related merge requests found
......@@ -73,6 +73,13 @@ def write_timer_initialization():
return chrono_dump
def init_kernel_function_call():
dump = "\t// pre-kernels initialization\n"
for task in list_gpu_tasks_object:
dump += "\t{k_init_name};\n".format(k_init_name=task.init_function_name)
dump += "\n"
return dump
def write_main(args):
with open(args.output_file, "a") as outFile:
# Start message
......@@ -90,6 +97,8 @@ def write_main(args):
"\tprintf(\"Start the execution of GPUSCHED order\\n\");\n"
"\tprintf(\"There is %d steps to execute\", steps.size()\\n);\n"
)
outFile.write(init_kernel_function_call())
outFile.write(generate_cudaStreams())
outFile.write(write_timer_initialization())
outFile.write(generate_main_unroll_step())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment