CUDA 11.7 not detected

Hi,

I am using ZED1 (SDK 3.8.1) on Windows 10 (GTX1070 with CUDA V11.7.64). I got a “CUDA not detected” warning when I was installing the ZED SDK. After running the ZED Diagnostic, I got a “CUDA 11.7 not detected” warning again. ZEDfu is not working while the Explorer and the Depth Viewer work well. I have tried nvcc -V(cmd shows “Cuda compilation tools, release 11.7, V11.7.64 Build cuda_11.7.r11.7/compiler.31294372_0”) and Nvidia-smi (cmd shows “NVIDIA-SMI 516.01 Driver Version: 516.01 CUDA Version: 11.7”), and it seems that CUDA 11.7 works well on my PC. I am wondering which environment variable is used for detecting CUDA by the ZED SDK. Any help would be appreciated.

Thanks

Hello,

Sorry for your troubles. It’s very weird that ZEDfu does not work but Depth viewer does. Can you double check that Depth viewer works correctly ?

  • If ULTRA mode works, basic CUDA works
  • if NEURAL works, advanced CUDA (tensorrt, cudnn) works too.

It’s expected that Explorer works, because it does not use CUDA.
I suggest you completely uninstall CUDA and install it again by running the SDK installer. The SDK installs the CUDA it needs. It can just be messed by a previous installation of another version.

Can you also attached the diagnostic file from ZED Diagnostics ?

Antoine

Thank you for your kind help!

I have double-checked ZEDfu and Depth viewer. Depth viewer works very smoothly. However, ZEDfu outputs a black screen in the ULTRA, QUALITY, and PERFORMANCE modes. I cannot choose the NEURAL mode (grey option) in ZEDfu. By the way, the camera option in the setting of ZEDfu is also grey.

I have tried completely uninstalling CUDA (version 11.7) many times and reinstalling it by the ZED SDK. None of them works. Currently, I try to install ZED SDK 3.8.2 (CUDA 10.2 version) and CUDA 10.2 (by the SDK). But it fails to work again. Here is the output of the ZED Diagnostics:
{
“AI Models”: {
“info”: [
“MULTI CLASS DETECTION is not optimized”,
“MULTI CLASS MEDIUM DETECTION is not optimized”,
“MULTI CLASS ACCURATE DETECTION is not optimized”,
“HUMAN BODY FAST DETECTION is not optimized”,
“HUMAN BODY MEDIUM DETECTION is not optimized”,
“HUMAN BODY ACCURATE DETECTION is not optimized”,
“PERSON HEAD DETECTION is not optimized”,
“PERSON HEAD ACCURATE DETECTION is not optimized”,
“REID ASSOCIATION is not optimized”,
“NEURAL DEPTH is not optimized”
]
},
“Camera Test”: {
“InternalDevicesCount”: 1,
“ZEDCount”: 1,
“camera”: {
“Device ID”: 0,
“Firmware”: 1523,
“Init Output”: “OK”,
“Model”: “ZED”,
“Serial Number”: 2956,
“valid”: [
Camera: ZED”,
Firmware: 1523”
]
},
“resolutions”: {
“HD1080@15”: {
“fps (input)”: 15,
“fps (output)”: 15,
“height (input)”: 1080,
“height (output)”: 1080,
“initialization”: “OK”,
“status”: true,
“width (input)”: 1920,
“width (output)”: 1920
},
“HD1080@30”: {
“fps (input)”: 30,
“fps (output)”: 30,
“height (input)”: 1080,
“height (output)”: 1080,
“initialization”: “OK”,
“status”: true,
“width (input)”: 1920,
“width (output)”: 1920
},
“HD2K@15”: {
“fps (input)”: 15,
“fps (output)”: 15,
“height (input)”: 1242,
“height (output)”: 1242,
“initialization”: “OK”,
“status”: true,
“width (input)”: 2208,
“width (output)”: 2208
},
“HD720@15”: {
“fps (input)”: 15,
“fps (output)”: 15,
“height (input)”: 720,
“height (output)”: 720,
“initialization”: “OK”,
“status”: true,
“width (input)”: 1280,
“width (output)”: 1280
},
“HD720@30”: {
“fps (input)”: 30,
“fps (output)”: 30,
“height (input)”: 720,
“height (output)”: 720,
“initialization”: “OK”,
“status”: true,
“width (input)”: 1280,
“width (output)”: 1280
},
“HD720@60”: {
“dropCount”: 0,
“fps (input)”: 60,
“fps (output)”: 60,
“height (input)”: 720,
“height (output)”: 720,
“imageCount”: 500,
“initialization”: “OK”,
“status”: true,
“tearingCount”: 0,
“width (input)”: 1280,
“width (output)”: 1280
},
“VGA@100”: {
“fps (input)”: 100,
“fps (output)”: 96,
“height (input)”: 376,
“height (output)”: 376,
“initialization”: “OK”,
“status”: true,
“width (input)”: 672,
“width (output)”: 672
},
“VGA@15”: {
“fps (input)”: 15,
“fps (output)”: 15,
“height (input)”: 376,
“height (output)”: 376,
“initialization”: “OK”,
“status”: true,
“width (input)”: 672,
“width (output)”: 672
},
“VGA@30”: {
“fps (input)”: 30,
“fps (output)”: 30,
“height (input)”: 376,
“height (output)”: 376,
“initialization”: “OK”,
“status”: true,
“width (input)”: 672,
“width (output)”: 672
},
“VGA@60”: {
“fps (input)”: 60,
“fps (output)”: 60,
“height (input)”: 376,
“height (output)”: 376,
“initialization”: “OK”,
“status”: true,
“width (input)”: 672,
“width (output)”: 672
}
},
“sensors”: {
}
},
“Graphics Card”: {
“deviceCount”: 1,
“deviceDriverVersion”: 12000,
“devices”: [
{
“arch”: “Pascal”,
“computeCapability”: “6.1”,
“cores”: 2048,
“name”: “NVIDIA GeForce GTX 1070”,
“totalMemoryBytes”: “8589803520”,
“totalMemoryMB”: 8191.875
}
],
“initResult”: 0,
“valid”: [
Graphics card: NVIDIA GeForce GTX 1070”
]
},
“Processor”: {
“OS”: “Windows 10 FallCreators”,
“avxSupported”: true,
“coreCount”: “4”,
“cpu”: “Intel(R) Core™ i7-6700 CPU @ 3.40GHz”,
“datetime”: “2022-11-24 20:04:40”,
“hyperThreading”: “1”,
“motherboard”: "P7xxDM2(-G) , Notebook ",
“ramCapacity”: “31.9569”,
“ramUsage”: “0”,
“ramUsed”: “12”,
“threadCount”: “8”,
“valid”: [
Processor: Intel(R) Core™ i7-6700 CPU @ 3.40GHz”,
"Motherboard: P7xxDM2(-G) , Notebook "
]
},
“USB”: {
“ASMediaFound”: false,
“CorruptedFirmware”: false,
“OC_Cam_Detected”: false,
“OtherUSBDevices”: [
],
“USBList”: [
{
“USB_path”: “/5”,
“idProduct”: “0xc52b”,
“idVendor”: “0x046d”
},
{
“USB_path”: “/5”,
“idProduct”: “0xc52b”,
“idVendor”: “0x046d”
},
{
“USB_path”: “/10”,
“idProduct”: “0xb5a7”,
“idVendor”: “0x04f2”
},
{
“USBMode”: 3,
“USB_path”: “/22”,
“bDescriptorType”: 1,
“bDeviceProtocol”: 1,
“bLength”: 18,
“bMaxPacketSize0”: 9,
“bNumConfigurations”: 1,
“bcdDevice”: “1.0”,
“bcdUSB”: “3.0”,
“bcdUSBClass”: 239,
“bcdUSBSubClass”: 2,
“busNumber”: 1,
“device”: “ZED”,
“iManufacturer”: 1,
“iProduct”: 2,
“iSerial”: 0,
“idProduct”: “0xf582”,
“idVendor”: “0x2b03”
},
{
“USB_path”: “/11”,
“idProduct”: “0x0a2a”,
“idVendor”: “0x8087”
}
],
“USBMode”: 3,
“ZED Camera Module Detected”: 62850,
“ZEDDetected”: true,
“captureDevices”: [
],
“controllers”: [
{
“CompatibleIDs”: “PCI\VEN_8086&DEV_A12F&REV_31”,
“Description”: “&\b USB xHCI �;:�6h”,
“DeviceName”: “Intel(R) USB 3.0 �iU;:�6h - 1.0 (Microsoft)”,
“Driver”: “{36fc9e60-c465-11cf-8056-444553540000}\0000”,
“Location”: “PCI ;� 0\u0001�\u0007 20\u0001�� 0”,
“Manufacturer”: “\u001a( USB xHCI ;:�6h”,
“Name”: “PCI”,
“PhysicalName”: “\Device\NTPNP_PCI0002”
},
{
“CompatibleIDs”: “”,
“Description”: “USB 9ƿh(USB 3.0)”,
“DeviceName”: “”,
“Driver”: “{36fc9e60-c465-11cf-8056-444553540000}\0001”,
“Location”: “”,
“Manufacturer”: “(\u0007� USB ƿh)”,
“Name”: “USB”,
“PhysicalName”: “\Device\USBPDO-0”
}
],
“valid”: [
USB Bandwidth: OK”
]
},
“ZED SDK”: {
“CUDA loading”: false,
“CUDA_reachable”: true,
“ZED SDK Version (Diag)”: “3.8.2”,
“ZED SDK Version (RT)”: “3.8.2”,
“ai”: {
“checkAI”: true,
“cudaVersion”: 10020,
“cudnnCudartVersion”: 10020,
“cudnnVersion”: 8401,
“cudnnVersionExpected”: 8401,
“tensorVersion”: 8402
},
“binFiles”: [
“cudnn64_8.dll”,
“cudnn_adv_infer64_8.dll”,
“cudnn_adv_train64_8.dll”,
“cudnn_cnn_infer64_8.dll”,
“cudnn_cnn_train64_8.dll”,
“cudnn_ops_infer64_8.dll”,
“cudnn_ops_train64_8.dll”,
“nvinfer.dll”,
“nvinfer_builder_resource.dll”,
“nvinfer_plugin.dll”,
“nvonnxparser.dll”,
“nvparsers.dll”,
“sl_ai64.dll”,
“sl_zed64.dll”,
“zlibwapi.dll”
],
“driverVersion”: “526.98”,
“drivervDllVersion”: “31.0.15.2698”,
“error”: [
CUDA 10.2 not detected
Make sure CUDA is installed and restart your computer. Download.”
],
“resourcesFiles”: [
],
“resourcesFilesExpected”: [
“objects_performance_2.2”
],
“runtimeDllVersion”: 10020,
“valid”: [
ZED SDK version: 3.8.2”
]
}
}

Hello, you should let the SDK install CUDA and not install it by yourself. If you installed a 10.2 by yourself, it might be really hard to remove it entirely.
Your diagnostics says that the SDK is looking for a 10.2 version indeed. SO you’ll need to install CUDA (again)
Also, you’ll have a lot more performance with 11.7. So let’s go with this.

  • Remove every trace of CUDA in your machine, in your path, in other SDKs that might have installed their own versions (azure kinect, for example)
  • Install the SDK again, and let it install a brand new CUDA
  • Run the diagnostic again :slight_smile:

Again, sorry for this. You are not the only one getting headaches because of a bad cuda installation. We are trying to improve this on our side.

Antoine

Thanks for your advice.
After my troubleshooting, I find that CUDA should install in its default directory (C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7). Otherwise (i.e., user-specified directory), the diagnostics can not detect CUDA correctly. However, even in this case (i.e., CUDA not detected), the depth viewer and ZEDfu are still working. Therefore, I think this may be a bug in the diagnostics.
Anyway, I have solved this issue, thanks again.

Thank you for these details. It will surely help others.

Antoine

@xueyinhualuo are you sure to have downloaded the correct installer for CUDA 11.7?

This section of the ZED Diagnostic report means that you used the installer for CUDA 10.2.