Now the error is
Saddly I still don't understand why this error occurs here , it looks good to me.
Update 2
I switched gcc and g++ to 5.4.0.
OS still is Ubuntu 20.04 with CUDA 9.0 ,OpenCV 4.5.3.
update 1 error occurs in this environment.
Update 3
After step to step debug,it looks somethings wrong with my CUDA memory
Can't run NVIDIA-CUDA-SAMPLE/1_Utilities/UnifiedMemoryPerf
Update 4
I'm running fusibile on vGPU
according to this topic
I found out that unified memory is not supported from inside a VM with vGPU (only via pass-through mode).
It might be the culprit
gdb says :
Program terminated with signal SIGSEGV,Segmentation fault
.I don't know much about c/c++ ,only took a course in college.
My gcc and g++ version are both
7.5.0
. OS isUbuntu 20.04
withCUDA 10.2
,OpenCV 4.5.3
.Update 1 By adding following debug settings to CMakeList.txt , The error become clear
Now the error is
Saddly I still don't understand why this error occurs here , it looks good to me.
Update 2 I switched gcc and g++ to
5.4.0
. OS still isUbuntu 20.04
withCUDA 9.0
,OpenCV 4.5.3
.update 1
error occurs in this environment.Update 3 After step to step debug,it looks somethings wrong with my CUDA memory
Can't run NVIDIA-CUDA-SAMPLE/1_Utilities/UnifiedMemoryPerf
![图片](https://user-images.githubusercontent.com/38915818/234077569-6daf3906-3639-409b-9965-d7031ddccb24.png)
Update 4 I'm running fusibile on vGPU according to this topic I found out that unified memory is not supported from inside a VM with vGPU (only via pass-through mode). It might be the culprit
Update 5 vGPU and Unified Memory![图片](https://user-images.githubusercontent.com/38915818/234082184-5b0e6a16-01ee-4197-b7e4-d23086fff8b3.png)