Note: This has not been tested yet. To enable us to build the plugin without CUDA available on the build machine we (forward) declare all the `cuda.h` symbols we use and load the runtime functions from libcuda.so when the plugin is loaded.
Details
- Reviewers
- None
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
openmp/libomptarget/plugins/cuda/src/rtl.cpp | ||
---|---|---|
77–78 | Nit: I'd suggest declaring the functions with their real names and only use the macro to affect the callers. #define cuMemAlloc cuMemAlloc_v2 CUresult cuMemAlloc_v2(CUdeviceptr *, size_t); |
Look for CUDA functions on demand and once only, inform libomptarget if CUDA was not found.
clang-tidy: error: 'MemoryManager.h' file not found [clang-diagnostic-error]
not useful