cuda调用报cuInit的相关错误

您好,我们在使用Jetson AGX Orin过程中,启动使用GPU的进程会出现报cuInit的错误。
现象是偶发的,有时候开机启动会正常。
一旦开机出现cuda的问题后,再手动启动任何调用cuda的应用,好像都有问题。


请问这是会是哪方面的问题导致?如需要其它信息协助分析,请告知,我会提供上传。
运行的Jetpack版本是5.1.2
定制载板。

Hi,

Sorry for the late update.
Do you set up a custom driver or CUDA version?

Or the error with the default JetPack 5.1.2 software?
If so, could you share a simple reproducible source with us?

Thanks.

这个就是默认使用的jetpack 5.1.2, 出现这个问题后,程序没改变,重启就可以运行了, 所以应该不是软件版本的问题,出问题的代码片段如下
image

There is no update from you for a period, assuming this is not an issue anymore.
Hence, we are closing this topic. If need further support, please open a new one.
Thanks

Hi,

Would you mind wrapping the JPEG encoder part into a compilable sample.
And share the building steps with us so we can test it locally?

Thanks.