<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/136491>136491</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Runtime unavailability of unified shared memory not disclosed by libomptarget
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
KaruroChori
</td>
</tr>
</table>
<pre>
> I found the issue at least in my case. Debian official kernel images are built without CONFIG_DEVICE_PRIVATE.
> Which is needed for this feature to work.
> https://forums.developer.nvidia.com/t/how-to-enable-hmm-on-debian/316561
>
> Time to rebuild the kernel.
>
> **Addendum**: I can confirm that with the freshly baked kernel it works.
_Originally posted by @KaruroChori in [#127334](https://github.com/llvm/llvm-project/issues/127334#issuecomment-2817171884)_
Debian's kernel images, and possibly others, don't ship with support for USM out of the box.
At runtime, applications which have been built with `#pragma omp requires unified_shared_memory` are going to fail without providing any meaningful error message which describes the issue.
It would be nice if libomptarget could perform a check at runtime and provide a more meaningful error message for this type of failure.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyklE-TozYQxT-NfOkyBQL858DBmRmnXKlkU5vN5uhqoQY6oz9EEp7426cAZ3fmkFNOKoSq1e_3Xgtj5N4RNaL-QdTPG5zS4EPzE4Yp-KfBB94or--NKF_gAp2fnIY0EHCMEwEmMIQxATuwd2gxUgbPpBgd-K7jltHAKwVHBthiTxEwEKiJTYI3ToOfEjx9-uV8-fH6_PL18vRy_fXz5evpy0sGIPLTfOsfA7cDcARHpElD5wOkgSN0hGkKBMnDmw-v2eP8kNIYRXkS8izkufNhsjHTdCPjRwqZu7FmzFpvhTwnIc-Df9smvyWHytB2sHbr3VYvGoQ8l8Wu3hWP0o_lC9vl1kCzkJXHKjL7eFDIk5Cnk9bk9GTXL1Ge4AItOmi96zhYSAOuMJZCXaA4mDsofCX9jV1aJMZsqZyf4PopcM8OjbnD6GMiDeoOos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