DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] gpu/cuda: differentiate V100 32GB GPU IDs
@ 2022-02-10  1:58 eagostini
  2022-02-10 15:22 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: eagostini @ 2022-02-10  1:58 UTC (permalink / raw)
  To: dev; +Cc: Elena Agostini

From: Elena Agostini <eagostini@nvidia.com>

Differentiate between GPU V100 32GB SMX2 device id
and V100 32GB PCIe device id.

Signed-off-by: Elena Agostini <eagostini@nvidia.com>
---
 drivers/gpu/cuda/cuda.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/cuda/cuda.c b/drivers/gpu/cuda/cuda.c
index 0ece1bb612..49c7b065a3 100644
--- a/drivers/gpu/cuda/cuda.c
+++ b/drivers/gpu/cuda/cuda.c
@@ -63,7 +63,8 @@ static int cuda_driver_version;
 #define NVIDIA_GPU_A30_24GB_DEVICE_ID (0x20b7)
 #define NVIDIA_GPU_A10_24GB_DEVICE_ID (0x2236)
 
-#define NVIDIA_GPU_V100_32GB_DEVICE_ID (0x1db6)
+#define NVIDIA_GPU_V100_32GB_SXM_DEVICE_ID (0x1db5)
+#define NVIDIA_GPU_V100_32GB_PCIE_DEVICE_ID (0x1db6)
 #define NVIDIA_GPU_V100_16GB_DEVICE_ID (0x1db4)
 
 #define NVIDIA_GPU_T4_16GB_DEVICE_ID (0x1eb8)
@@ -107,7 +108,11 @@ static const struct rte_pci_id pci_id_cuda_map[] = {
 	},
 	{
 		RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID,
-				NVIDIA_GPU_V100_32GB_DEVICE_ID)
+				NVIDIA_GPU_V100_32GB_SXM_DEVICE_ID)
+	},
+	{
+		RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID,
+				NVIDIA_GPU_V100_32GB_PCIE_DEVICE_ID)
 	},
 	{
 		RTE_PCI_DEVICE(NVIDIA_GPU_VENDOR_ID,
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] gpu/cuda: differentiate V100 32GB GPU IDs
  2022-02-10  1:58 [PATCH] gpu/cuda: differentiate V100 32GB GPU IDs eagostini
@ 2022-02-10 15:22 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2022-02-10 15:22 UTC (permalink / raw)
  To: Elena Agostini; +Cc: dev

10/02/2022 02:58, eagostini@nvidia.com:
> From: Elena Agostini <eagostini@nvidia.com>
> 
> Differentiate between GPU V100 32GB SMX2 device id
> and V100 32GB PCIe device id.
> 
> Signed-off-by: Elena Agostini <eagostini@nvidia.com>

Applied, thanks.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-10 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-10  1:58 [PATCH] gpu/cuda: differentiate V100 32GB GPU IDs eagostini
2022-02-10 15:22 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).