[Openmp-commits] [PATCH] D95314: [OpenMP][Libomptarget] Introduce Remote Offloading Plugin

Atmn Patel via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sun Jan 24 10:48:26 PST 2021


atmnpatel created this revision.
atmnpatel added reviewers: jdoerfert, JonChesterfield, tianshilei1992.
Herald added subscribers: pengfei, guansong, yaxunl, mgorny.
atmnpatel requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.

This introduces a remote offloading plugin for libomptarget. This
implementation relies on gRPC and protobuf, so this library will only
build if both libraries are available on the system. The corresponding
server is compiled to `openmp-offloading-server`.

This is a large change, but the only way to split this up is into RTL/server
but I fear that could introduce an inconsistency amongst them.

Ideally, tests for this should be added to the current ones that but that is
problematic for at least one reason. Given that libomptarget registers plugin
on a first-come-first-serve basis, if we wanted to offload onto a local x86
through a different process, then we'd have to either re-order the plugin list
in `rtl.cpp` (which is what I did locally for testing) or find a better
solution for runtime plugin registration in libomptarget.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95314

Files:
  openmp/libomptarget/plugins/CMakeLists.txt
  openmp/libomptarget/plugins/exports
  openmp/libomptarget/plugins/remote/CMakeLists.txt
  openmp/libomptarget/plugins/remote/include/Utils.h
  openmp/libomptarget/plugins/remote/include/openmp.proto
  openmp/libomptarget/plugins/remote/lib/Utils.cpp
  openmp/libomptarget/plugins/remote/server/CMakeLists.txt
  openmp/libomptarget/plugins/remote/server/OffloadingServer.cpp
  openmp/libomptarget/plugins/remote/server/Server.cpp
  openmp/libomptarget/plugins/remote/server/Server.h
  openmp/libomptarget/plugins/remote/src/CMakeLists.txt
  openmp/libomptarget/plugins/remote/src/Client.cpp
  openmp/libomptarget/plugins/remote/src/Client.h
  openmp/libomptarget/plugins/remote/src/rtl.cpp
  openmp/libomptarget/src/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95314.318851.patch
Type: text/x-patch
Size: 98465 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210124/8653bac1/attachment-0001.bin>


More information about the Openmp-commits mailing list