-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[darknet] Fix dependence cuda #35413
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the feature dependencies added, isn't the patch obsolete now?
ports/darknet/fix-opencv-cuda.patch
Outdated
if(ENABLE_OPENCV) | ||
find_package(OpenCV REQUIRED) | ||
- if(OpenCV_FOUND) | ||
+ if(ENABLE_OPENCV) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pointless. The block starts with if(ENABLE_OPENCV)
.
And given REQUIRED
, ENABLE_OPENCV
implies OpenCV_FOUND
.
(However, NOT ENABLE_OPENCV
doesn't necessarily imply NOT OpenCV_FOUND
.)
being the author of the original CMakeLists.txt, can you please tell me the errors and the logic behind your fixes? |
@cenit Thank you for your reply, Because |
There already is AFAIU there is an issue with finding CUDA. Which at least has the effect of turning off |
dg0yt is right. |
the pr is still broken from my point of view. |
@cenit
|
so the error is just at the copy tool clause: to find the uselib_track tool built, you need to have selected opencv-cuda feature AND cuda+cudnn feature, not just opencv-cuda feature. |
{ | ||
"name": "darknet", | ||
"features": [ | ||
"cuda" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cenit
I think we only need to add cuda. Do we need cudnn?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry. For the editing of your comments. I seem to have made a mistake in my operation. 😅
Judging from the code logic of |
without the cuda feature of course you cannot have enable_cuda on! |
but but... the result should have been different, as i tried many times to explain... uselib_track should have been copied as a tool when both feature were enabled, otherwise it does not exist by definition! |
However, this condition is not enough to open |
@FrankXie05 I wrote that file (the cmakelists you're linking)... |
Fix #33355
SHA512s are updated for each updated downloadThe "supports" clause reflects platforms that may be fixed by this new versionAny fixed CI baseline entries are removed from that file.Any patches that are no longer applied are deleted from the port's directory../vcpkg x-add-version --all
and committing the result.