OpenCV Error: Gpu Api Call <invalid device function>
hi, I build OpenCV 2.4.9 from source with Visual Studio 2012 + Cuda 5.5 + Cmake 2.8 on Windows 7 32bit. My computer with Gigabyte Gefore 9800 GTX+ (Compute capability = 1.1).
If i set CUDA_ARCH_BIN = 2.0 2.1 3.0 3.5, the OpenCV build is OK. I run the sample bgfg_segm of cuda, it raises an error: "OpenCV Error: Gpu Api Call <invalid device="" function="">, file .../gpubgsegm/src/cuda/mog.cu. line 328"
But if i set CUDA_ARCH_BIN = 1.1 1.2 1.3 2.0 2.1(2.0) 3.0 3.5, the OpenCV build will raises an error:__longlong_as_double" is undefined....
Could you pls tell me how to build OpenCV 2.4.9 from source with VS2012 + Cuda 5.5 + CMake 2.8 to run the samples with my card above.
Thanks,
Check out this solution, which succesfully compiles the 2.4.9 branch with cuda 5.5 and VS2012.
My card (Gigabyte Gefore 9800 GTX+) does not support Compute Capability 3.0 (CUDA_ARCH_BIN = 3.0) like him, only 1.1 so i am still not successful.
Will that actually work? I got compute capability 2.1 and that works with 5.5. Why not try to use CUDA 5.0 first and see if that goes?