Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 0845030c authored by Thierry's avatar Thierry
Browse files

Merge remote-tracking branch 'gitlab/libkomp' into libkomp

parents 0f2f23d1 4f1c6068
Branches
No related tags found
No related merge requests found
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
macro (ompt_event_thread_state_end, ompt_threadstate_callback_t, 73) /* end state */ \ macro (ompt_event_thread_state_end, ompt_threadstate_callback_t, 73) /* end state */ \
macro (ompt_event_thread_steal, ompt_thread_steal_callback_t, 74) /* steal event */ \ macro (ompt_event_thread_steal, ompt_thread_steal_callback_t, 74) /* steal event */ \
macro (ompt_event_thread_schedinfo, ompt_threadstate_callback_t, 75) /* set sched info */ \ macro (ompt_event_thread_schedinfo, ompt_threadstate_callback_t, 75) /* set sched info */ \
macro (ompt_event_task_attr, ompt_task_attr_callback_t, 76) /* set sched info */ macro (ompt_event_task_attr, ompt_task_attr_callback_t, 76) /* task attr info */
/***************************************************************************** /*****************************************************************************
* data types * data types
......
...@@ -864,6 +864,23 @@ on_ompt_event_task_attr( ...@@ -864,6 +864,23 @@ on_ompt_event_task_attr(
} }
static void
on_ompt_event_thread_schedinfo(
ompt_thread_id_t thread_id,
uint64_t state,
uint32_t cpu,
uint32_t node
)
{
#if LOG
printf("%" PRIu64 ": ompt_event_thread_schedinfo: state id=%" PRIu64 ", cpu=%i, node=%i\n", thread_id, state, cpu, node);
#endif
#if USE_KAAPI
kaapi_ompt_thread_info_t* koti = &__kaapi_oth_info[thread_id];
kaapi_tracelib_thread_state( koti->kproc, 0, cpu, node, state );
#endif
}
static void static void
on_ompt_event_thread_schedinfo( on_ompt_event_thread_schedinfo(
ompt_thread_id_t thread_id, ompt_thread_id_t thread_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment