<div dir="ltr"><div>In CUDA-GDB.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 17, 2020 at 10:34 AM Alexey Bataev <<a href="mailto:a.bataev@outlook.com">a.bataev@outlook.com</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">
<div>
<p>This is what you see in cuda-gdb? Or at the runtime when you run
the program directly?<br>
</p>
<pre cols="72">-------------
Best regards,
Alexey Bataev</pre>
<div>16.01.2020 3:22 PM, Itaru Kitayama via
Openmp-dev пишет:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi,
<div>Adding this small loop to my app:</div>
<div><br>
</div>
#pragma omp target parallel for map(to: nranks)<br>
for (int i=0;i<0;i++) {<br>
printf("%d\n", nranks);<br>
<div> }</div>
<div><br>
</div>
<div>leads to a run-time error on device. See below:</div>
<div><br>
</div>
<div>[New Thread 0x10008b9ff180 (LWP 103236)]<br>
</div>
<div>[Switching focus to CUDA kernel 0, grid 2, block (0,0,0),
thread (0,0,0), device 0, sm 0, warp 0, lane 0]<br>
0x0000000014588068 in
__omp_offloading_3b_801278cf__ZN4nest20EventDeliveryManager15deliver_events_INS_9SpikeDataEEEbiRKSt6vectorIT_SaIS4_EE_l666<<<(1,1,1),(128,1,1)>>>
(<br>
nranks=<error reading variable: Error: Failed to read
local memory at address 0xc8ee158 on device 0 sm 0 warp 0 lane
0, error=CUDBG_ERROR_INVALID_MEMORY_ACCESS(0x8).<br>
>) at
/p/project/cpcp0/pcp0151/projects/nest-simulator/nestkernel/event_delivery_manager.cpp:667<br>
667 for (int i=0;i<0;i++) {<br>
</div>
<div><br>
</div>
<div>I am using the latest trunk Clang for this.</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Openmp-dev mailing list
<a href="mailto:Openmp-dev@lists.llvm.org" target="_blank">Openmp-dev@lists.llvm.org</a>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a>
</pre>
</blockquote>
</div>
</blockquote></div></div>