[PATCH 3/9] [gpu/cuda] New NVIDIA GPU Hopper device ID on Grace

Gregory Etelson
2025-09-15T14:43:29Z

From: Elena Agostini <eagostini@nvidia.com>

Signed-off-by: Elena Agostini <eagostini@nvidia.com>
---
drivers/gpu/cuda/cuda.c | 4 ++++
drivers/gpu/cuda/devices.h | 2 ++
2 files changed, 6 insertions(+)

diff --git a/drivers/gpu/cuda/cuda.c b/drivers/gpu/cuda/cuda.c
index 0af955421a..21c4fe9bef 100644
--- a/drivers/gpu/cuda/cuda.c
+++ b/drivers/gpu/cuda/cuda.c
@@ -251,6 +251,10 @@ static const struct rte_pci_id pci_id_cuda_map[] = {
RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID,
NVIDIA_GPU_T4)
},
+ {
+ RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID,
+ NVIDIA_GPU_HOPPER_GRACE)
+ },
{
.device_id = 0
}
diff --git a/drivers/gpu/cuda/devices.h b/drivers/gpu/cuda/devices.h
index e138a600d6..5d9c7616f2 100644
--- a/drivers/gpu/cuda/devices.h
+++ b/drivers/gpu/cuda/devices.h
@@ -68,4 +68,6 @@
#define NVIDIA_GPU_T4G (0x1eb4)
#define NVIDIA_GPU_T4 (0x1eb8)

+#define NVIDIA_GPU_HOPPER_GRACE (0x2342)
+
#endif /* CUDA_DEVICES_H */
--
2.48.1