diff options
author | Renaud Kauffmann <rkauffmann@nvidia.com> | 2024-10-30 13:24:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-30 13:24:47 -0700 |
commit | bfe486fe764667d514124faf2b39afb7e7322640 (patch) | |
tree | ec49939dad1db3e48f56d1fed8707bc90be6faa0 /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | |
parent | 84a78abdf5999e58e4120e20594ac2ad37472295 (diff) | |
download | llvm-bfe486fe764667d514124faf2b39afb7e7322640.zip llvm-bfe486fe764667d514124faf2b39afb7e7322640.tar.gz llvm-bfe486fe764667d514124faf2b39afb7e7322640.tar.bz2 |
Passing descriptors by reference to CUDA runtime calls (#114288)
Passing a descriptor as a `const Descriptor &` or a `const Descriptor *`
generates a FIR signature where the box is passed by value.
This is an issue, as it requires a load of the box to be passed. But
since, ultimately, all boxes are passed by reference a temporary is
generated in LLVM and the reference to the temporary is passed.
The boxes addresses are registered with the CUDA runtime but the
temporaries are not, thus preventing the runtime to properly map a host
side address to its device side counterpart.
To address this issue, this PR changes the signatures to the transfer
functions to pass a descriptor as a `Descriptor *`, which will in turn
generate a FIR signature with that takes a box reference as an argument.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions