Hey guys,
out of no where I get following error, when trying to run CHECK_DW_ERROR(dwInitialize(&m_context, m_sdkVersion, NULL));:
terminate called after throwing an instance of 'std::runtime_error'
what(): [2024-11-05 15:50:15] DW Error DW_CUDA_ERROR executing DW function:
dwInitialize(&m_context, m_sdkVersion, NULL)
I hope you can help me with this problem.
Thanks in advance!
Dear @0b.d3 ,
Is this issue noticed on target? Could you check running CUDA deviceQuery sample(/usr/local/cuda/samples/1_Utilities/deviceQuery) to confirm if GPU is detected?
yes, I am executing the code in an IDE on the target.
I tried the command you recommended and the GPU was recognized. I also ran sample_hello_world and everything went fine.
This indicates CUDA initialization is failing. I am assuming you tested deviceQuery on tatget. Can you check running the application directly on target instead of via IDE? If issue persists, can you share the sample code to repro the issue.