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

fix warning for printf

parent 7dea0be7
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ def generate_main_unroll_step():
unroll += "\tstep_end = high_resolution_clock::now();\n"
unroll += "\telapsed_time = step_end - base;\n"
unroll += "\telapsed_time_ms = duration_cast<ms>(elapsed_time);\n"
unroll += "\tprintf(\"After step {no} at time %d ms\",elapsed_time_ms.count());\n".format(no=currStep.step_no)
unroll += "\tprintf(\"After step {no} at time %ld ms\\n\",elapsed_time_ms.count());\n".format(no=currStep.step_no)
unroll += "\tidle_time = milliseconds({next_step_min_time}) - elapsed_time_ms;\n".format(next_step_min_time=list_gpusched_step_object[i+1].min_time_start)
unroll += "\tif (idle_time.count() > 0)\n\t\tstd::this_thread::sleep_for(idle_time);\n"
......@@ -95,7 +95,7 @@ def write_main(args):
#"\tauto gputasks = get_gpusched_task_vector();\n"
"\tauto steps = get_gpusched_steps();\n"
"\tprintf(\"Start the execution of GPUSCHED order\\n\");\n"
"\tprintf(\"There is %d steps to execute\\n\", steps.size());\n"
"\tprintf(\"There is %lu steps to execute\\n\", steps.size());\n"
)
outFile.write(init_kernel_function_call())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment