<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/85934>85934</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[OpenMP][OMPD] ompd_get_icv_string_from_scope() returns ompd_rc_unsupported for integer ICVs
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jdelsign
</td>
</tr>
</table>
<pre>
The LLVM OMPD library function ompd_get_icv_string_from_scope() returns ompd_rc_unsupported for integer ICVs. However, the ICV values can be fetched using ompd_get_icv_from_scope() to get the values as an ompd_word_t.
The following is TotalView debug output showing one example of the failure:
`OMPD DLL: ompd_get_icv_string_from_scope(handle=0x4fdd640,scope=4,icv_id=15)->rc_unsupported`
`OMPD DLL: ompd_get_icv_from_scope(handle=0x4fdd640,scope=4,icv_id=15)->rc_ok: icv_value=0x0`
The OpenMP spec places no such requirement on ompd_get_icv_string_from_scope(), which suggests that the function should be able to return integer ICVs formatted as string.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysk09vszgQxj-NuYwaOQaScuDQDRvtSonaQ9UrMvYA7hqb9Z-k_favDFGr6j30PfSSIMZ-npmH33Dv1WAQa1L-Rcom4zGM1tWvEnUqZJ2V7_XziHA6vZzh8fzUgFad4-4d-mhEUNaAnWbZDhhaJS6tD06Zoe2dnVov7IyE3RNWgcMQnfHrYSfaaHycZ-sCSuitA2UCDujg38OL38A_9ooXdIQdIIyYXsKF64geBDfQIfQYxIgSoldm-NrBb9bBwoBhEbqJcA_81vfVOtmGDaENoQ_rbxq3t1rba9JWHp5t4PpF4RUkdnEAG8McA_hxPWENAr7xadYItl98eq50dEjymyTZ0SW75nQi-cP3iY3cSI0kb-hb0Uu5Kyhhh7WYNwVhh3RRSZI325Kw6o7kf3_NlOzo984_YGn_S6qptES7XKef5h95Ps5ozk_gZxQway7Qg7HgoxjB4f9ROZzQBPhDmhIX11GJEXwcBvTBQxj5-ok_sPSjjVomWHinMVGwMvgFtcTexEOikHtY7W4wZLLOZZVXPMN6u9_Sqsj3VZ6N9Z6KfclKXmIlyrwqtrgTBWdVX1b7DnuaqZpRVtCc0W1Bq3K72XNRSbbbsRzFdscoKShOXOmN1pdpY92QKe8j1vdllReZ5h1qv2wkYwavsBQJY2lBXZ3u3HVx8KSgWvngP1WCCnpZ5TVuUjbp-fzUkLL5-TXNotP1GMLsE-fsSNhxUGGM3UbYibBjauv2dzc7-4oiEHZchvGEHZdhfwUAAP__hxCCMA">