[PATCH] D96248: [OpenMP][AMDGPU] Add support for linking libomptarget bitcode

Jon Chesterfield via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 8 11:55:15 PST 2021


JonChesterfield added a comment.

Looks like an existing problem, but for building openmp via runtimes, with this patch applied this doesn't look in the right place and errors:

'error: No library 'libomptarget-amdgcn-gfx906.bc' found in the default clang lib directory or in LIBRARY_PATH. Please use --libomptarget-nvptx-bc-path to specify nvptx bitcode libarary'

So ./clang/include/clang/Basic/DiagnosticDriverKinds.td entry err_drv_omp_offload_target_missingbcruntime should probably prefer to 'device' instead of 'nvptx' (error message change only), and we should look in './runtimes/runtimes-bins/openmp/libomptarget/' as well as clang lib.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96248/new/

https://reviews.llvm.org/D96248



More information about the cfe-commits mailing list