[Openmp-commits] [PATCH] D100774: [OpenMP] Add function for setting LIBOMPTARGET_INFO at runtime
Joseph Huber via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Apr 21 14:35:55 PDT 2021
jhuber6 updated this revision to Diff 339387.
jhuber6 edited the summary of this revision.
jhuber6 added a comment.
Herald added subscribers: kerbowa, nhaehnle, jvesely.
Changing the interface, previously each plugin / file had its own version of the static variable, now to change it we need a global atomic variable to represent it. Whenever the value is updated it also needs to be sent to the currently loaded plugins if they support it. I added the `__tgt_rtl_set_info_flag` function to the plugin library for this purpose.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100774/new/
https://reviews.llvm.org/D100774
Files:
openmp/docs/design/Runtimes.rst
openmp/libomptarget/include/Debug.h
openmp/libomptarget/include/omptarget.h
openmp/libomptarget/include/omptargetplugin.h
openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
openmp/libomptarget/plugins/cuda/src/rtl.cpp
openmp/libomptarget/plugins/exports
openmp/libomptarget/plugins/generic-elf-64bit/src/rtl.cpp
openmp/libomptarget/plugins/remote/src/rtl.cpp
openmp/libomptarget/plugins/ve/src/rtl.cpp
openmp/libomptarget/src/exports
openmp/libomptarget/src/interface.cpp
openmp/libomptarget/src/rtl.cpp
openmp/libomptarget/src/rtl.h
openmp/libomptarget/test/offloading/info.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100774.339387.patch
Type: text/x-patch
Size: 11834 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210421/20df21f2/attachment.bin>
More information about the Openmp-commits
mailing list