aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorJon Chesterfield <jonathanchesterfield@gmail.com>2021-08-26 17:28:17 +0100
committerJon Chesterfield <jonathanchesterfield@gmail.com>2021-08-26 17:28:18 +0100
commita5f4074d85bd7633c6d2cd3abaa7ac169430b32c (patch)
treeb323554a35ee194a647a13ca7719e3b2a69eb024 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent1076082a0d97bd5c16a25ee7cf3dbb6ee4b5a9fe (diff)
downloadllvm-a5f4074d85bd7633c6d2cd3abaa7ac169430b32c.zip
llvm-a5f4074d85bd7633c6d2cd3abaa7ac169430b32c.tar.gz
llvm-a5f4074d85bd7633c6d2cd3abaa7ac169430b32c.tar.bz2
[libomptarget][amdgpu] Macro for accessing GPU variables from plugin
Lets the amdgpu plugin write to omptarget_device_environment to enable debugging. Intend to use in the near future to record the wavesize that a given deviceRTL was compiled with for running on hardware that supports 32 or 64. Patch sets all the attributes that are useful. Notably .data means the variable is set by writing to host memory before copying to the GPU instead of launching a kernel to update the image. Can simplify the plugin slightly to drop the code for patching after load if this is used consistently. NFC on nvptx, cuda plugin seems to work fine without any annotations. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D108698
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions