[Openmp-commits] [PATCH] D77472: [OpenMP][PoC][WIP] An OpenMP-based OpenMP device runtime [NOT FOR COMMIT]

Johannes Doerfert via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sat Apr 4 12:13:34 PDT 2020


jdoerfert created this revision.
Herald added subscribers: guansong, bollu, yaxunl, mgorny.
Herald added a project: OpenMP.

In order to make the device runtime truly device independent and thereby
reusable, e.g., for testing on the host, we want to eliminate the
remaining non-portable code. This basically boils down to __device__,
__shared__, and some other attributes, e.g., __forceinline__.

NOTE: This does not yet create a valid .bc file as the IR files we get
via c++ are not directly usable by llvm-link/opt/.... I did not
investigate how to extract the pure IR. The entire nvptx compilation
process should be re-investigated as we might not need to link.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77472

Files:
  openmp/libomptarget/deviceRTLs/common/device_environment.h
  openmp/libomptarget/deviceRTLs/common/src/cancel.cpp
  openmp/libomptarget/deviceRTLs/common/src/cancel.cu
  openmp/libomptarget/deviceRTLs/common/src/critical.cpp
  openmp/libomptarget/deviceRTLs/common/src/critical.cu
  openmp/libomptarget/deviceRTLs/common/support.h
  openmp/libomptarget/deviceRTLs/common/target.h
  openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
  openmp/libomptarget/deviceRTLs/nvptx/src/nvptx_interface.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77472.255069.patch
Type: text/x-patch
Size: 10019 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200404/56037ce9/attachment.bin>


More information about the Openmp-commits mailing list