[Openmp-dev] Enabling OMPT by default

Paul Osmialowski via Openmp-dev openmp-dev at lists.llvm.org
Thu Dec 21 04:14:14 PST 2017



On 21/12/2017 10:51, Jonas Hahnfeld wrote:
> Am 2017-12-21 11:22, schrieb Paul Osmialowski:
>> replies inlined below:
>>
>> On 20/12/2017 18:34, Jonas Hahnfeld wrote:
>>> Am 2017-12-20 14:22, schrieb Paul Osmialowski:
>>>> Yeah, you're right again, with the following change:
>>>>
>>>> +#define print_possible_return_addresses(addr) \
>>>> +  printf("%" PRIu64 ": current_address=%p or %p\n",
>>>> ompt_get_thread_data()->value, \
>>>> +         ((char *)addr) - 4, ((char *)addr) - 8)
>>>
>>> Cool, can you put up a patch for this?
>>>
>>
>> Done, https://reviews.llvm.org/D41482
>>
>>
>>>> ...I can see only ompt/tasks/explicit_task.c failing from time to
>>>> time, but it seems to be unrelated to printed address issue:
>>>>
>>>> runtime/test/ompt/tasks/explicit_task.c:94:12: error: expected string
>>>> not found in input
>>>>  // CHECK: {{^}}[[THREAD_ID]]: ompt_event_barrier_end:
>>>> parallel_id={{[0-9]+}}, task_id=[[IMPLICIT_TASK_ID]]
>>>>            ^
>>>> <stdin>:53:1: note: scanning from here
>>>
>>> Do you have the chance to get the full output when the checks fail? 
>>> (I usually run the test directly, save the output temporarily and 
>>> pass it to FileCheck to have the output at hand if that fails.)
>>>
>>
>> Now when I run it in isolation, it points to different line, but the
>> issue seems the same:
>>
>> $ cat explicit_task.c.tmp.out
>> |$HOME/llvm/build-shared-release/bin/FileCheck
>> $HOME/openmp/runtime/test/ompt/tasks/explicit_task.c
>> $HOME/openmp/runtime/test/ompt/tasks/explicit_task.c:76:12: error:
>> expected string not found in input
>>  // CHECK: {{^}}[[THREAD_ID:[0-9]+]]: ompt_event_implicit_task_begin:
>> parallel_id=[[PARALLEL_ID]], task_id=[[IMPLICIT_TASK_ID:[0-9]+]]
>>            ^
>> <stdin>:50:86: note: scanning from here
>> 281474976710657: ompt_event_implicit_task_end: parallel_id=0,
>> task_id=281474976710661, team_size=2, thread_num=0
>>
>>              ^
>> <stdin>:50:86: note: with variable "PARALLEL_ID" equal to 
>> "281474976710660"
>> 281474976710657: ompt_event_implicit_task_end: parallel_id=0,
>> task_id=281474976710661, team_size=2, thread_num=0
>>
>>              ^
>> <stdin>:55:5: note: possible intended match here
>> 562949953421313: ompt_event_implicit_task_end: parallel_id=0,
>> task_id=562949953421314, team_size=0, thread_num=1
>>     ^
>>
>> ...And the full output is:
>>
>> [...]
> 
> The test sorts the output by thread: sort --numeric-sort --stable. So 
> unfortunately this output doesn't show the original error that you have 
> been seeing :-(

Unfortunately it occurs very rarely...


More information about the Openmp-dev mailing list