Issue 79344
Summary OpenMP offload issue: Illegal memory access error at runtime when building an app in `Debug` mode.
Labels new issue
Assignees
Reporter rgayatri23
    The issue arises when building the Kokkos-OpenMPTarget backend of TestSNAP (a proxy app for SNAP in LAMMPS package).
App builds and runs fine in `Release` mode.

Compiler used - clang/16, clang/17.0.6
Architecture - A100

Steps to reproduce the issue.
Clone a release or develop branch of Kokkos from [here](https://github.com/kokkos/kokkos). 
Build OpenMPTarget backend
```bash
cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$kk_install_path -DKokkos_ENABLE_OPENMPTARGET=ON -DKokkos_ARCH_AMPERE80=ON -DKokkos_ENABLE_TESTS=OFF ../
```

Clone `Kokkos_V2` branch of TestSNAP from [here](https://github.com/FitSNAP/TestSNAP).
Use the following cmake command
```bash
cmake -DKokkos_ROOT=$kk_install_path -Dref_data=8 -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release ..
```


_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to