[Openmp-dev] Failed to read local memory on device

Itaru Kitayama via Openmp-dev openmp-dev at lists.llvm.org
Thu Jan 16 17:38:18 PST 2020


Sure, if I code it in a sample code that works (offloaded properly), as
expected.

On Fri, Jan 17, 2020 at 10:37 AM Itaru Kitayama <itaru.kitayama at gmail.com>
wrote:

> In CUDA-GDB.
>
> On Fri, Jan 17, 2020 at 10:34 AM Alexey Bataev <a.bataev at outlook.com>
> wrote:
>
>> This is what you see in cuda-gdb? Or at the runtime when you run the
>> program directly?
>>
>> -------------
>> Best regards,
>> Alexey Bataev
>>
>> 16.01.2020 3:22 PM, Itaru Kitayama via Openmp-dev пишет:
>>
>> Hi,
>> Adding this small loop to my app:
>>
>> #pragma omp target parallel for map(to: nranks)
>>         for (int i=0;i<0;i++) {
>>         printf("%d\n", nranks);
>>         }
>>
>> leads to a run-time error on device. See below:
>>
>> [New Thread 0x10008b9ff180 (LWP 103236)]
>> [Switching focus to CUDA kernel 0, grid 2, block (0,0,0), thread (0,0,0),
>> device 0, sm 0, warp 0, lane 0]
>> 0x0000000014588068 in
>> __omp_offloading_3b_801278cf__ZN4nest20EventDeliveryManager15deliver_events_INS_9SpikeDataEEEbiRKSt6vectorIT_SaIS4_EE_l666<<<(1,1,1),(128,1,1)>>>
>> (
>>     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).
>> >) at
>> /p/project/cpcp0/pcp0151/projects/nest-simulator/nestkernel/event_delivery_manager.cpp:667
>> 667 for (int i=0;i<0;i++) {
>>
>> I am using the latest trunk Clang for this.
>>
>> _______________________________________________
>> Openmp-dev mailing listOpenmp-dev at lists.llvm.orghttps://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20200117/a7fa54e4/attachment.html>


More information about the Openmp-dev mailing list