Skip to content

[Offload] Unit tests fail with "Plugin was not initialized!" assertion in deinit #148615

@leandrolcampos

Description

@leandrolcampos

When I try to run the kernel.unittest test:

> ninja -C build/runtimes/runtimes-bins OffloadUnitTests
> ./build/runtimes/runtimes-bins/offload/unittests/OffloadAPI/kernel.unittests

I get this error message at the end of the test log:

kernel.unittests: /home/leandro/llvm-project/offload/plugins-nextgen/common/src/PluginInterface.cpp:1658: Error llvm::omp::target::plugin::GenericPluginTy::deinit(): Assertion `Initialized && "Plugin was not initialized!"' failed.
pure virtual method called
terminate called without an active exception
Aborted (core dumped)

The same happens for other tests, like device.unittests and memory.unittests.

Environment:

  • Device: CUDA_NVIDIA_GeForce_RTX_4070_Laptop_GPU
  • LLVM version: Custom build from git
        * LLVM Project Commit Hash: 2886d30dd68f798deda7093d00bf9fc52dabcdd7
  • Operating System: Ubuntu 24.04.2 LTS (WSL2)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions