<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/56633>56633</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            OpenMP Target (V100) Reduction Test case in kokkos-openmptarget-examples crashes
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            openmp,
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          martagarciamartinez
      </td>
    </tr>
</table>

<pre>
    While testing the kokkos-openmptarget-examples(*) on V100, I am encountering this error in the "Reduction" test case
(*) https://github.com/kokkos/kokkos-openmptarget-examples

In kokkos-openmptarget-examples/Reduction> ./test.ompt 

OMPT: scalar reduction = 0.015244 [secs]
OMPT: vector reduction = 0.016501 [secs]
Vector reduction failure. expected = 5000500000000, result = 100000 
CUDA error: an illegal memory access was encountered 
Libomptarget error: Copying data from device failed.
Libomptarget error: Call to targetDataEnd failed, abort target.
Libomptarget error: Failed to process data after launching the kernel.
Libomptarget error: Consult https://openmp.llvm.org/design/Runtimes.html for debugging options.
Kokkos_OpenMPTarget_Parallel.hpp:945:1: Libomptarget fatal error 1: failure of target construct while offloading is mandatory
Aborted
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFVMlu2zAQ_Rr5MoggS5aXgw6unQBBWyQo2vQYUORIYkORAkll6dd3SDl20sU1bIma0bx5szzXRrxU3zupEDw6L3ULvkN4MA8Pxl2YAXU_eGZb9Bf4zPpBoUvydZJvk3wDRsPdPMuSfAfXwHpAzc2oPdoJRjpAa40FqSNokudfUIzcS6PpHBMCZw6TbJ9k2xNu5_3gkoLOV_Rtpe_GOuWmp4eJ2PHwD4YTXrxe6_8Uc3XiVFxCSobAKzX0arLLk232Fu3m8-1XIgaOM8Us2NdQSIo9ZGk2L_PFApLyg0PuknL_PuoRuTd_i1qW2fyPqLvf326YVKPFFPB5IB-KGF9mWRZ-8RNGYdGNykfffDK-KWP3bb-dphIIMQ1SKWyZgh57Y1-AcY7OwRNzp2mieIvwSdbmtY0npJ0ZXsLUBfMMGmt6EPgoOUbSKNKzsUwp8AYm-54QLrU4BIaCWG2sP3jPAl3FkAA1WBPriHRYQ0WAYqPm3XHB0WpU52kZHRv5fhunLUqVeuxTY1uyCHSy1WGRqFuyR5d2vlfQ0OwE1mPbhpxmCCN0h4Qf40be3xAWrUbMe3_LLPWBOHXDQNk2i5Ku80DkHb2GKlIHXUXvYSvANIcWAadE3tLSwFMUtmkaZZgINEiSPdPUFZr1RGUbmotiJqpCbIoNm3npFVYTNZi4kXLXk9A3cFQLfH2Vb9D3OY0Bt8x16GajVdUZbYeeHm4XNMAftOP0KJ0bo07L5bIoZl21Xm3Eiq0W63LZLBelyNf1Zl0wsWl40_CczxSrUbmK9ET_MhMjOoRNopvGJ4iQwVTuZ7LKszzPVjlpt1zNy5Tx-WKFyLHIG7GY18kiw556fBz5zFaRIo3WkVNJ593JyVzYBsSYnvDZ6Dtjq55Zz1pmuWThKDX-nEUaVSzrF6gH0_w">