-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ubuntu 14.04 + cuda 7.5 +opencv 2.4.9 #49
Comments
That usually means that your graphics card doesn't have a high enough compute capability. Please look at https://developer.nvidia.com/cuda-gpus and make sure that your compute capability is at least 3.5 |
@anuranbaka |
Weird. I have never seen that on an 840. Can you find the source for the error? I'm surprised to see it looks like it's coming out of the opencv library. If you can find the kernel that is producing the error and point me to it, I might have better luck debugging it |
It occurs to me you might be compiling the kernels for the wrong architechture, since cuda code is forward compatible, but the compiled kernels are not. Make sure you compiled for compute capability 5 in the opencv settings. I think that they might not include that by default. |
@anuranbaka you can find the installation link: http://blog.aicry.com/ubuntu-14-04-install-opencv-with-cuda/ |
@anuranbaka I solve the problem by using another computer that have the right gpu version. And then i found running error after ./a.out like: OpenCV Error: Assertion failed (src1.type() == src2.type()) in scaleAdd, file /home/ubuntu/opencv-2.4.10/modules/core/src/matmul.cpp, line 2079 when run to the command line optimizer.cvStream.waitForCompletion(); |
@anuranbaka I have the same error and using the GPU GFORCE TITAN X with compute capability 5.2. I use opencv 2.4.9 and compile it myself with cuda arch_bin 3.5. Any suggestions ? I think this is majorly due to the opencv problem. |
...
Reading: scene_044.png
text_file_name = /home/anson/Downloads/OpenDTAM-2.4.9_experimental/Trajectory_30_seconds/scene_045.txt
Reading: scene_045.png
text_file_name = /home/anson/Downloads/OpenDTAM-2.4.9_experimental/Trajectory_30_seconds/scene_046.txt
Reading: scene_046.png
text_file_name = /home/anson/Downloads/OpenDTAM-2.4.9_experimental/Trajectory_30_seconds/scene_047.txt
Reading: scene_047.png
text_file_name = /home/anson/Downloads/OpenDTAM-2.4.9_experimental/Trajectory_30_seconds/scene_048.txt
Reading: scene_048.png
text_file_name = /home/anson/Downloads/OpenDTAM-2.4.9_experimental/Trajectory_30_seconds/scene_049.txt
Reading: scene_049.png
OpenCV Error: Gpu API call (invalid device function) in call, file /home/anson/Downloads/opencv-2.4.10/modules/gpu/include/opencv2/gpu/device/detail/transform_detail.hpp, line 320
terminate called after throwing an instance of 'cv::Exception'
what(): /home/anson/Downloads/opencv-2.4.10/modules/gpu/include/opencv2/gpu/device/detail/transform_detail.hpp:320: error: (-217) invalid device function in function call
Aborted (core dumped)
Hi,
How to solve this problem? I use ldd a.out and the results like:
The text was updated successfully, but these errors were encountered: