CUDA Error on camera init despite all OK in ZED_Diagnostic

Hi, when running

init = sl.InitParameters(sdk_verbose=True)
zed = sl.Camera()
zed.open(init)

I get

[ZED][Init] Depth mode: PERFORMANCE
[ZED][Init][Info] Camera successfully opened.
[ZED][Init][Info] Sensors FW version: 778
[ZED][Init][Info] Camera FW version: 1523
[ZED][Init] Video mode: HD720@60
[ZED][Init] CUDA error : 13 while allocating memory.
NO GPU COMPATIBLE

ZED_Diagnostic passes all check. Here’s the output:

{
    "Camera Test": {
        "ZEDCount": 1,
        "deviceInitResult": 0,
        "firmware": 1523,
        "resolutions": {
            "HD1080@15": {
                "fps (input)": 15,
                "fps (output)": 15,
                "height (input)": 1080,
                "height (output)": 1080,
                "initCode": true,
                "initialization": "Ok",
                "width (input)": 1920,
                "width (output)": 1920
            },
            "HD1080@30": {
                "fps (input)": 30,
                "fps (output)": 30,
                "height (input)": 1080,
                "height (output)": 1080,
                "initCode": true,
                "initialization": "Ok",
                "width (input)": 1920,
                "width (output)": 1920
            },
            "HD2K@15": {
                "fps (input)": 15,
                "fps (output)": 15,
                "height (input)": 1242,
                "height (output)": 1242,
                "initCode": true,
                "initialization": "Ok",
                "width (input)": 2208,
                "width (output)": 2208
            },
            "HD720@15": {
                "fps (input)": 15,
                "fps (output)": 15,
                "height (input)": 720,
                "height (output)": 720,
                "initCode": true,
                "initialization": "Ok",
                "width (input)": 1280,
                "width (output)": 1280
            },
            "HD720@30": {
                "fps (input)": 30,
                "fps (output)": 30,
                "height (input)": 720,
                "height (output)": 720,
                "initCode": true,
                "initialization": "Ok",
                "width (input)": 1280,
                "width (output)": 1280
            },
            "HD720@60": {
                "dirty lenses": 0,
                "dropCount": 6,
                "fps (input)": 60,
                "fps (output)": 60,
                "height (input)": 720,
                "height (output)": 720,
                "imageCount": 494,
                "initCode": true,
                "initialization": "Ok",
                "tearingCount": 0,
                "width (input)": 1280,
                "width (output)": 1280
            },
            "VGA@100": {
                "fps (input)": 100,
                "fps (output)": 100,
                "height (input)": 376,
                "height (output)": 376,
                "initCode": true,
                "initialization": "Ok",
                "width (input)": 672,
                "width (output)": 672
            },
            "VGA@15": {
                "fps (input)": 15,
                "fps (output)": 15,
                "height (input)": 376,
                "height (output)": 376,
                "initCode": true,
                "initialization": "Ok",
                "width (input)": 672,
                "width (output)": 672
            },
            "VGA@30": {
                "fps (input)": 30,
                "fps (output)": 30,
                "height (input)": 376,
                "height (output)": 376,
                "initCode": true,
                "initialization": "Ok",
                "width (input)": 672,
                "width (output)": 672
            },
            "VGA@60": {
                "fps (input)": 60,
                "fps (output)": 60,
                "height (input)": 376,
                "height (output)": 376,
                "initCode": true,
                "initialization": "Ok",
                "width (input)": 672,
                "width (output)": 672
            }
        },
        "serial": 20606339,
        "valid": [
            "<b>Camera: </b>ZED 2",
            "<b>Firmware: </b>1523"
        ],
        "videoNumber": 0
    },
    "Graphics Card": {
        "deviceCount": 1,
        "deviceDriverVersion": 11040,
        "devices": [
            {
                "arch": "Kepler",
                "computeCapability": "3.0",
                "cores": 576,
                "name": "Quadro K2100M",
                "totalMemoryBytes": "2099511296",
                "totalMemoryMB": 2002.25
            }
        ],
        "initResult": 0,
        "valid": [
            "<b>Graphics card: </b> Quadro K2100M"
        ]
    },
    "Processor": {
        "OS": "Ubuntu 20.04.3 LTS ",
        "avxSupported": true,
        "coreCount": "8",
        "cpu": " Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz",
        "datetime": "2021-11-17 19:13:28",
        "hyperThreading": "1",
        "motherboard": "FJNB274, FUJITSU",
        "ramCapacity": "33.552982",
        "ramUsage": "",
        "ramUsed": "13.643882",
        "threadCount": "16",
        "valid": [
            "<b>Processor: </b>  Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz",
            "<b>Motherboard: </b> FJNB274, FUJITSU"
        ]
    },
    "USB": {
        "CorruptedFirmware": false,
        "MCUDetected": true,
        "USBList": [
            {
                "USBMode": 3,
                "USB_path": "/1",
                "bDescriptorType": 1,
                "bDeviceProtocol": 1,
                "bLength": 18,
                "bMaxPacketSize0": 9,
                "bNumConfigurations": 1,
                "bcdDevice": "1.0",
                "bcdUSB": "3.0",
                "bcdUSBClass": 239,
                "bcdUSBSubClass": 2,
                "busNumber": 2,
                "device": "ZED2",
                "iManufacturer": 1,
                "iProduct": 2,
                "iSerial": 0,
                "idProduct": "0xf780",
                "idVendor": "0x2b03"
            },
            {
                "USB_path": "/9",
                "idProduct": "0xc05a",
                "idVendor": "0x046d"
            },
            {
                "USB_path": "/8",
                "idProduct": "0x07dc",
                "idVendor": "0x8087"
            },
            {
                "USB_path": "/5/2",
                "idProduct": "0x7772",
                "idVendor": "0x0b97"
            },
            {
                "USB_path": "/5",
                "idProduct": "0x7761",
                "idVendor": "0x0b97"
            },
            {
                "USB_path": "/3",
                "idProduct": "0x0138",
                "idVendor": "0x0853"
            },
            {
                "USB_path": "/2",
                "idProduct": "0x0191",
                "idVendor": "0x1a7c"
            },
            {
                "USBMode": 2,
                "USB_path": "/1/2",
                "bDescriptorType": 1,
                "bDeviceProtocol": 0,
                "bLength": 18,
                "bMaxPacketSize0": 64,
                "bNumConfigurations": 1,
                "bcdDevice": "3.10",
                "bcdUSB": "2.0",
                "bcdUSBClass": 0,
                "bcdUSBSubClass": 0,
                "busNumber": 1,
                "device": "ZED2 MCU",
                "iManufacturer": 1,
                "iProduct": 2,
                "iSerial": 3,
                "idProduct": "0xf781",
                "idVendor": "0x2b03"
            },
            {
                "USB_path": "/1",
                "idProduct": "0x2512",
                "idVendor": "0x0424"
            }
        ],
        "USBMode": 3,
        "ZED Camera Module Detected": 63360,
        "ZED MCU Module Detected": 63361,
        "ZEDDetected": true,
        "valid": [
            "<b>USB Bandwidth: </b> OK"
        ]
    },
    "ZED SDK": {
        "CUDA Toolkit version": "V11.4.152",
        "DiagnosticZEDSDKVersion": "3.6.1",
        "InstalledZEDSDKVersion": "Unknown",
        "SMI": "(SMI) :     Performance State                     : P0",
        "ai": {
            "checkAI": true,
            "cudaVersion": 11040,
            "cudnnCudartVersion": 11040,
            "cudnnVersion": 8204,
            "cudnnVersionExpected": 8204,
            "tensorVersion": 8200
        },
        "binFiles": [
            "libsl_ai.so",
            "libsl_zed.so"
        ],
        "cudaDeviceCount": 0,
        "cudaLoaded": true,
        "initResult": 1,
        "loaded": true,
        "resourcesFiles": [
            "objects_performance_2.1.model"
        ],
        "resourcesFilesExpected": [
            "objects_performance_2.1"
        ],
        "valid": [
            "<b>CUDA version:</b> 11.4"
        ]
    }
}

I guess this error had to do with my GPU being of 3.0 CUDA compute capability. Everything is OK with a newer GPU.

1 Like