-
Notifications
You must be signed in to change notification settings - Fork 88
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
[bug] Warning: CCTag library is built without CUDA support, so we can't enable CUDA. #220
Comments
Are you running docker with nvidia runtime, i.e. with |
Hi, Yeah sure, I use my GPU (in this case a RTX 4060 Laptop Version) all the time in multiple docker environments. The GPU is listed inside the docker and all the stuff that requires one runs on it, I already checked that. It somehow seems that the flag for if the code was compiled using CUDA is not set. Could be something else but it seems like it. Do you have any other ideas what the issue could be? Thanks in advance. |
Maybe for some reason it's not including the config file. #include <cctag/cctag_config.hpp> at the top of This file is the one who defines (or not) |
ah sorry I overlooked you had your own detection file, I was thinking you were using the one in the library. Just a side note, unrelated to the issue, you can remove these lines from your cmakelists # Include directories for CCTag
include_directories(${OpenCV_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
include_directories(/usr/local/lib/)
include_directories(/usr/include/eigen3)
include_directories(/usr/local/cuda/include)
include_directories(${CUDA_INCLUDE_DIRS})
# Link directories for CCTag
link_directories(/usr/local/lib/) everything is taken in charge by |
No it is not. |
can you |
Try to modify target_compile_definitions(CCTag PUBLIC CCTAG_WITH_CUDA) Add the same for the detection target in its cmakelists target_compile_definitions(detection PUBLIC CCTAG_WITH_CUDA) and rebuild everything |
I had a very similar issue. I had to do the following in order to actually compile it with cuda support.
For my cmake version 3.28.3 I also hat to add the follow to my cmake file:
The compute capability level of my GPU is 8.6 and I then got the following error as I tested the example detection (
To me it seems like the line This workaround (develop...theDigitalGuy:CCTag:debugCudaProblem) seems to work okay. Seldom I get something like the following: My work around is probably not very elegant, but it hopefully helps to solve the problem properly.
could be used to determine the optimal thread count. |
Hello,
I am trying to build the library using CUDA and everything seems to be ok during the build process. However, when I try to do a simple detection using CUDA I get the following output:
Warning: CCTag library is built without CUDA support, so we can't enable CUDA.
It seems that the CCTAG_WITH_CUDA flag is not set as seen in the message print.
I work inside a custom docker container with the following base image:
FROM nvidia/cuda:12.3.1-devel-ubuntu22.04
I use the newest versions of TBB, eigen3, cmake and boost as well as opencv 4.7
I use following flags for building:
cmake -DCCTAG_BUILD_TESTS:BOOL=ON -DCCTAG_BUILD_APPS:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -DCCTAG_WITH_CUDA:BOOL=ON ..
And the output looks good as well:
And this would be the CMakeLists.txt for my detection cpp file:
Which also builds without issues.
I am using the newest CCTag release from a few weeks ago.
Am I missing some flag that needs to be set? Are there some CUDA version issues with 12.3.1?
The text was updated successfully, but these errors were encountered: