[Openmp-commits] [PATCH] D142369: [Libomptarget] Emit a special warning when no images are found

Joseph Huber via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Jan 23 09:33:45 PST 2023

jhuber6 added a comment.

In D142369#4074092 <https://reviews.llvm.org/D142369#4074092>, @ye-luo wrote:

> When libomptarget failed to load the amd plugin due to missing hsa runtime so files.
> I got
>   yeluo at epyc-server:~$ clang++ -fopenmp --offload-arch=gfx90a main.cpp
>   yeluo at epyc-server:~$ OMP_TARGET_OFFLOAD=mandatory ./a.out 
>   Libomptarget error: Consult https://openmp.llvm.org/design/Runtimes.html for debugging options.
>   Libomptarget error: None of the images found are compatible: gfx90a
>   Libomptarget error: Source location information not present. Compile with -g or -gline-tables-only.
>   Libomptarget fatal error 1: failure of target construct while offloading is mandatory
> `None of the images found are compatible: gfx90a` this line is a bit hard to digest. Could you print a list of loaded plugins and a list of images.

The following is the list of images found. I could try to make that more explicit. And by default we should have every plugin loaded.

  rG LLVM Github Monorepo



More information about the Openmp-commits mailing list