summaryrefslogtreecommitdiff
path: root/offload/plugins-nextgen
diff options
context:
space:
mode:
authorCallum Fare <callum@codeplay.com>2025-07-08 10:04:48 +0100
committerGitHub <noreply@github.com>2025-07-08 10:04:48 +0100
commitfdf6ab2a533b06c3c974bd7e17da084a4de0c525 (patch)
tree196ba4224deb424f245d57a48474d3897436c334 /offload/plugins-nextgen
parente7ceaecefa5a8c2294f9cf091e6773fe0a7b64bf (diff)
[Offload] Implement 'Vendor Name' device info for CUDA (#147334)
After #146345 the device info implementation requires a value for every query, rather than silently returning an empty string. This broke the test for `OL_DEVICE_INFO_VENDOR` on CUDA. Add a value to the CUDA plugin. We can quite safely hard code this one.
Diffstat (limited to 'offload/plugins-nextgen')
-rw-r--r--offload/plugins-nextgen/cuda/src/rtl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/offload/plugins-nextgen/cuda/src/rtl.cpp b/offload/plugins-nextgen/cuda/src/rtl.cpp
index 9a9237a74b0e..53089df2d0f0 100644
--- a/offload/plugins-nextgen/cuda/src/rtl.cpp
+++ b/offload/plugins-nextgen/cuda/src/rtl.cpp
@@ -943,6 +943,8 @@ struct CUDADeviceTy : public GenericDeviceTy {
if (Res == CUDA_SUCCESS)
Info.add("Device Name", TmpChar);
+ Info.add("Vendor Name", "NVIDIA");
+
Res = cuDeviceTotalMem(&TmpSt, Device);
if (Res == CUDA_SUCCESS)
Info.add("Global Memory Size", TmpSt, "bytes");