llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.83k stars 11.91k forks source link

[OpenMP] Record Replay is not properly initialized. #64107

Open koparasy opened 1 year ago

koparasy commented 1 year ago

OpenMP-offload record replaying is not functioning properly:

llvm-omp-kernel-replay: /tmp/koparasy/llvm-project/openmp/libomptarget/src/omptarget.cpp:1725: int target_replay(ident_t *, DeviceTy &, void *, void *, int64_t, void **, ptrdiff_t *, int32_t, int32_t, int32_t, uint64_t, AsyncInfoTy &): Assertion `TargetTable && "Global data has not been mapped\n"' failed.
./replay.sh: line 3: 118664 Aborted         LIBOMPTARGET_PROFILE=out.json LIBOMPTARGET_RR_DEVMEM_SIZE=8 OMP_TARGET_OFFLOAD=mandatory LIBOMPTARGET_NEXTGEN_PLUGINS=1 llvm-omp-kernel-replay ${@:1}

On replay the openmp runtime does not configure the replay plugin extensions resulting into failures.

llvmbot commented 1 year ago

@llvm/issue-subscribers-openmp