]> git.droids-corp.org - dpdk.git/commitdiff
gpu/cuda: differentiate V100 32GB GPU IDs
authorElena Agostini <eagostini@nvidia.com>
Thu, 10 Feb 2022 01:58:51 +0000 (01:58 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 10 Feb 2022 15:14:24 +0000 (16:14 +0100)
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

index 408b659fce7bc2f611c697c3dc8849dcb4adac64..b43d5a32b7f3ad12028f3b4fd7fcaf39a5c327b2 100644 (file)
@@ -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,