We are trying to integrate drivenet api from nvidia in autoware 1.14.0. The autoware build is working but shows the below error Driveworks exception thrown: Cannot allocate cuda pitch memory, bytes 2280618562400
terminate called after throwing an instance of ‘std::runtime_error’ what():DW Error DW_FAILURE executing DW function: dwImageStreamer_initialize(&m_streamerCPU2CUDA, &opencv_prop, DW_IMAGE_CUDA, m_sdk)
Environment setup:
Software Version = DRIVE OS Linux 5.1.6 and DriveWorks 2.2
Target Operating System = Linux
Hardware Platform = NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
SDK Manager Version = 1.6.0.8170
Host Machine Version = Ubuntu 18.04
DRIVE_Software_10.0_Linux_OS_DRIVE_AGX_XAVIER
We are trying to run a rosbag or mp4 file, iam trying to convert into from cpu image to cuda image using drivenet function dwImageStreamer_initialize(&m_streamerCPU2CUDA, &opencv_prop, DW_IMAGE_CUDA, m_sdk);
we get this error
exception thrown: Cannot allocate cuda pitch memory, bytes 2280618562400
Dear @kagitala.varalakshmi1,
Could you share the used opencv_prop struct values? You need to send frame by frame to CUDA for processing. Could you refer to steps in “Simple image streamer” sample to know how to create a CPU image buffer with specific size and send to CUDA using dwImageStreamer.
Dear @kagitala.varalakshmi1,
So the buffer you are trying to transfer via Image streamer is of size 3840 * 2160 * 3* 8 bits? Could you confirm that as it is not matching to the buffer size in error.
Dear @kagitala.varalakshmi1,
It could probably a bug in Driveworks 2.2. How about testing just with DW code with latest DW release for verification of dwImagestreamer pipeline in your use case.