<div><div dir="auto">Johannes, all,</div></div><div dir="auto"><br></div><div dir="auto">Do you have a sample code that shows descriptive debug messages? In my codes, I don’t see any tailored messages other than usual errors.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 29, 2019 at 7:47 Doerfert, Johannes <<a href="mailto:jdoerfert@anl.gov">jdoerfert@anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think:<br>
  export LIBOMPTARGET_DEBUG=1<br>
and<br>
  export LIBOMPTARGET_DEVICE_RTL_DEBUG=1<br>
when you build the openmp runtime with debug support,<br>
so when LIBOMPTARGET_ENABLE_DEBUG is set in cmake.<br>
<br>
I don't have a setup to test your program right now but I hope someone else can.<br>
<br>
________________________________________<br>
From: Itaru Kitayama <<a href="mailto:itaru.kitayama@gmail.com" target="_blank">itaru.kitayama@gmail.com</a>><br>
Sent: Monday, October 28, 2019 17:40<br>
To: Doerfert, Johannes<br>
Cc: openmp-dev<br>
Subject: Re: [Openmp-dev] Mapped without a warning, but device code fails at run time<br>
<br>
Hi,<br>
How do I enable debug messages at run time?<br>
I've attached a small reproducer for you to take a look at it.<br>
<br>
On Tue, Oct 29, 2019 at 3:42 AM Doerfert, Johannes <<a href="mailto:jdoerfert@anl.gov" target="_blank">jdoerfert@anl.gov</a><mailto:<a href="mailto:jdoerfert@anl.gov" target="_blank">jdoerfert@anl.gov</a>>> wrote:<br>
This can have various reasons, including a compiler bug.<br>
Try to enable debug messages by the runtime and see if that helps to determine why offloading failed.<br>
You can also provide a small reproducer so we can take a look.<br>
<br>
________________________________________<br>
From: Openmp-dev <<a href="mailto:openmp-dev-bounces@lists.llvm.org" target="_blank">openmp-dev-bounces@lists.llvm.org</a><mailto:<a href="mailto:openmp-dev-bounces@lists.llvm.org" target="_blank">openmp-dev-bounces@lists.llvm.org</a>>> on behalf of Itaru Kitayama via Openmp-dev <<a href="mailto:openmp-dev@lists.llvm.org" target="_blank">openmp-dev@lists.llvm.org</a><mailto:<a href="mailto:openmp-dev@lists.llvm.org" target="_blank">openmp-dev@lists.llvm.org</a>>><br>
Sent: Monday, October 21, 2019 22:20<br>
To: openmp-dev<br>
Subject: [Openmp-dev] Mapped without a warning, but device code fails at run time<br>
<br>
Hi,<br>
By checking the compiler message, a type is mapped without triggering<br>
a Non-trivial type ... warning, but the device code fails at the run time leaving:<br>
<br>
Libomptarget fatal error 1: failure of target construct while offloading is mandatory<br>
<br>
(in the code accessing an element in a user-defined "vector")<br>
in this case, should I worry about a possible compiler bug?<br>
</blockquote></div></div>