diff options
author | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2021-01-23 00:15:03 +0000 |
---|---|---|
committer | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2021-01-23 00:15:04 +0000 |
commit | 47e95e87a3e4f738635ff965616d4e2d96bf838a (patch) | |
tree | a4a5ca41f26b04c2a22ea30e24efb9fbc95dca50 /llvm/unittests/ADT/SmallVectorTest.cpp | |
parent | ad25bdcb8e4e9459886062d3855a5971af758731 (diff) | |
download | llvm-47e95e87a3e4f738635ff965616d4e2d96bf838a.zip llvm-47e95e87a3e4f738635ff965616d4e2d96bf838a.tar.gz llvm-47e95e87a3e4f738635ff965616d4e2d96bf838a.tar.bz2 |
[libomptarget] Build cuda plugin without cuda installed locally
[libomptarget] Build cuda plugin without cuda installed locally
Compiles a new file, `plugins/cuda/dynamic_cuda/cuda.cpp`, to an object file that exposes the same symbols that the plugin presently uses from libcuda. The object file contains dlopen of libcuda and cached dlsym calls. Also provides a cuda.h containing the subset that is used.
This lets the cmake file choose between the system cuda and a dlopen shim, with no changes to rtl.cpp.
The corresponding change to amdgpu is postponed until after a refactor of the plugin to reduce the size of the hsa.h stub required
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D95155
Diffstat (limited to 'llvm/unittests/ADT/SmallVectorTest.cpp')
0 files changed, 0 insertions, 0 deletions