I am trying to retrieve task (explicit) identity in runtime. I find the routine call __kmp_task_alloc: Allocate the taskdata and task data structures for a task, Here
taskdata->td_task_id = KMP_GEN_TASK_ID(); and it the struct element definition says td_task_id, is assigned by debugger.
1). there any task_id which is been assigned while a task is formed..? If so, how can I get that ..? My goal is to identify each task and its data environment.
2). How can I get the KA_TRACE( ... ) for a program run ..? and also please let me know the easy way to debug the runtime happening.
Thank you very much in advance.