[PATCH] D85934: Enable OpenMP offloading to VE and enable tests for offloading to VE

Manoel Roemmer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 13 14:06:57 PDT 2020


manorom created this revision.
manorom added a reviewer: simoll.
Herald added subscribers: openmp-commits, cfe-commits, guansong, yaxunl, mgorny.
Herald added projects: clang, OpenMP.
manorom requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

OpenMP offloading to VE requires a cross-compiled OpenMP runtime and compiler-rt.

The compiler-rt files need to be placed in the build directory to run the tests, but the OpenMP runtime can be placed elsewhere with the CMake variable LIBOMPTARGET_OPENMP_HOST_RTL_FOLDER pointing to it.
The patch uses this CMake variable to set the library search path and the runtime VE_LD_LIBRARY_PATH environment variable for VE tests.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85934

Files:
  clang/lib/Frontend/CompilerInvocation.cpp
  openmp/libomptarget/CMakeLists.txt
  openmp/libomptarget/test/api/omp_get_num_devices.c
  openmp/libomptarget/test/api/omp_get_num_devices_with_empty_target.c
  openmp/libomptarget/test/env/omp_target_debug.c
  openmp/libomptarget/test/lit.cfg
  openmp/libomptarget/test/mapping/alloc_fail.c
  openmp/libomptarget/test/mapping/target_implicit_partial_map.c
  openmp/libomptarget/test/offloading/offloading_success.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85934.285489.patch
Type: text/x-patch
Size: 6355 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200813/4246bd8f/attachment-0001.bin>


More information about the cfe-commits mailing list