<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
Check that you're using the debug version of libomptarget. Maybe, need to change LD_LIBRARY_PATH.<br>
<br>
<div dir="ltr">Best regards,
<div>Alexey Bataev</div>
</div>
<div dir="ltr"><br>
<blockquote type="cite">31 окт. 2019 г., в 22:26, Itaru Kitayama via Openmp-dev <openmp-dev@lists.llvm.org> написал(а):<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div>I was expecting if the app was built with debug clang and appropriate env vars are set prior to its run, I should be getting more than a line</div>
<div>like:</div>
<div><br>
</div>
<div>Libomptarget fatal error 1: failure of target construct while offloading is mandatory<br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Nov 1, 2019 at 7:10 AM Doerfert, Johannes <<a href="mailto:jdoerfert@anl.gov">jdoerfert@anl.gov</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I don't know what you mean by descriptive debug messages compared to "the usual errors".<br>
Can you share what you see for the example you have problems with?<br>
<br>
________________________________________<br>
From: Itaru Kitayama <<a href="mailto:itaru.kitayama@gmail.com" target="_blank">itaru.kitayama@gmail.com</a>><br>
Sent: Thursday, October 31, 2019 16:55<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>
Johannes, all,<br>
<br>
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.<br>
<br>
On Tue, Oct 29, 2019 at 7:47 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>
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><mailto:<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>><mailto:<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>><mailto:<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>><mailto:<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>
<span>_______________________________________________</span><br>
<span>Openmp-dev mailing list</span><br>
<span>Openmp-dev@lists.llvm.org</span><br>
<span>https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</span><br>
</div>
</blockquote>
</body>
</html>