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

Ye Luo via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Jan 23 09:29:27 PST 2023

ye-luo added a comment.

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.

  rG LLVM Github Monorepo



More information about the Openmp-commits mailing list