Invalid_handel

Hi,
I’m trying to process images coming from the ZED stereo camera using CuPy (A GPU equivalent to NumPy). I’m currently getting an INVALID_HANDLE error while trying to process the second image (the first runs fine). reading some github threads it seems to be related to the context switching between ZED and CuPy. Does anybody have any idea how to solve this or whether or not it’s related to the context switching?

Hi,
We don’t have experience of running CuPy on Jetson platforms. not sure but looks like it supports x86_64 and amd64
per GitHub - cupy/cupy: NumPy & SciPy for GPU

May not work properly on arm64. Would need other users to share experience.

If direct CUDA programming is fine for your use-case, we suggest take a look at this sample:

/usr/src/jetson_multimedia_api/samples/v4l2cuda

Yo can capture frame data into CUDA buffer and do processing.

Hi, is seems that this issue is caused by the need to run CuPy and ZED in two different threads as they have different contexts.