<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">If the function call is to get the device environment variable from the image, that could return CUDA_ERROR_NOT_FOUND (500). However, it doesn't affect the execution of the program. The hang could be something else.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="color:black">-- <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Regards,<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="color:black">Shilei Tian</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Openmp-dev <openmp-dev-bounces@lists.llvm.org> on behalf of Itaru Kitayama via Openmp-dev <openmp-dev@lists.llvm.org><br>
<b>Date: </b>Sunday, December 5, 2021 at 5:03 AM<br>
<b>To: </b>openmp-dev <openmp-dev@lists.llvm.org><br>
<b>Subject: </b>[Openmp-dev] warning: Cuda API error detected: cuModuleGetGlobal_v2 returned (0x1f4)<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">Hi,<br>
My offloading app runs correctly on host, but gets stuck (no progress)<br>
on the device.<br>
<br>
In a cuda gdb session I see:<br>
<br>
(cuda-gdb) r<br>
<br>
The program being debugged has been started already.<br>
<br>
Start it from the beginning? (y or n) y<br>
<br>
Starting program:<br>
/p/project/cjinb33/kitayama1/opt/nest-clang-offload/bin/nest<br>
hpc_benchmark.sli<br>
<br>
warning: Cannot parse .gnu_debugdata section; LZMA support was<br>
disabled at compile time<br>
<br>
[Thread debugging using libthread_db enabled]<br>
<br>
Using host libthread_db library "/usr/lib64/libthread_db.so.1".<br>
<br>
warning: File "/p/software/jurecadc/stages/2020/software/GCCcore/10.3.0/lib64/libstdc++.so.6.0.28-gdb.py"<br>
auto-loading has been declined by your `auto-load safe-path' set to<br>
"$debugdir:$datadir/auto-load".<br>
<br>
warning: Cannot parse .gnu_debugdata section; LZMA support was<br>
disabled at compile time<br>
<br>
warning: Cannot parse .gnu_debugdata section; LZMA support was<br>
disabled at compile time<br>
<br>
OMP: Warning #249: OMP_TARGET_OFFLOAD: syntax error, using DEFAULT.<br>
<br>
warning: Cannot parse .gnu_debugdata section; LZMA support was<br>
disabled at compile time<br>
<br>
[Detaching after fork from child process 27044]<br>
<br>
[New Thread 0x15554a92d700 (LWP 27050)]<br>
<br>
[New Thread 0x15554a12c700 (LWP 27051)]<br>
<br>
virtual void nest::SimulationManager::initialize() Map this pointer at<br>
0x15552e1021a8<br>
<br>
warning: Cuda API error detected: cuModuleGetGlobal_v2 returned (0x1f4)<br>
<br>
<br>
warning: Cuda API error detected: cuModuleGetGlobal_v2 returned (0x1f4)<br>
<br>
<br>
warning: Cuda API error detected: cuModuleGetGlobal_v2 returned (0x1f4)<br>
<br>
<br>
warning: Cuda API error detected: cuModuleGetGlobal_v2 returned (0x1f4)<br>
<br>
<br>
warning: Cuda API error detected: cuModuleGetGlobal_v2 returned (0x1f4)<br>
<br>
<br>
warning: Cuda API error detected: cuModuleGetGlobal_v2 returned (0x1f4)<br>
<br>
<br>
warning: Cuda API error detected: cuModuleGetGlobal_v2 returned (0x1f4)<br>
<br>
Should I be concerned about the API error?<br>
_______________________________________________<br>
Openmp-dev mailing list<br>
Openmp-dev@lists.llvm.org<br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a><o:p></o:p></p>
</div>
</div>
</body>
</html>