Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 523eae76 authored by thierry's avatar thierry
Browse files

update. Generate the pid of the task ouside a commented region when LOG==0 !

parent 2420a354
No related branches found
No related tags found
No related merge requests found
...@@ -454,17 +454,16 @@ ompt_callback_task_create_action( ...@@ -454,17 +454,16 @@ ompt_callback_task_create_action(
{ {
uint64_t thread_id = ompt_get_thread_data()->value; uint64_t thread_id = ompt_get_thread_data()->value;
tikki_task_id_t *task = (tikki_task_id_t *)malloc(sizeof(tikki_task_id_t)); tikki_task_id_t *task = (tikki_task_id_t *)malloc(sizeof(tikki_task_id_t));
tikki_task_id_t *parent_task = (tikki_task_id_t*)parent_task_data->ptr;
new_task_data->ptr = task; new_task_data->ptr = task;
task->id = ompt_get_unique_id(); task->id = ompt_get_unique_id();
task->pid = -1; task->pid = parent_task->id;
task->task_ptr = codeptr_ra; task->task_ptr = codeptr_ra;
task->ndeps = 0; task->ndeps = 0;
task->name = next_name; task->name = next_name;
task->datainfo = next_data_info; task->datainfo = next_data_info;
#if LOG #if LOG
if (parent_task_data) { if (parent_task_data) {
tikki_task_id_t *parent_task = (tikki_task_id_t*)parent_task_data->ptr;
task->pid = parent_task->id;
printf("%" PRIu64 ": ompt_task_create: parent_id=%" PRIu64 ", task_id=%" PRIu64\ printf("%" PRIu64 ": ompt_task_create: parent_id=%" PRIu64 ", task_id=%" PRIu64\
", type=%i, has_dep=%i, ptr=%p, name=%s\n", thread_id, ", type=%i, has_dep=%i, ptr=%p, name=%s\n", thread_id,
parent_task->id, task->id, type, parent_task->id, task->id, type,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment