Fixed and updated OpenCL-VA interoperability - #18410
Merged
Merged
Conversation
mshabunin
force-pushed
the
fix-va-build
branch
from
September 25, 2020 13:08
272b7b3 to
387d217
Compare
mshabunin
force-pushed
the
fix-va-build
branch
from
September 25, 2020 13:12
387d217 to
862fc06
Compare
alalek
reviewed
Sep 25, 2020
| contextInitialized = true; | ||
|
|
||
| cl_platform_id platform = platforms[found]; | ||
| std::string platformName = PlatformInfo(platform).name(); |
Member
There was a problem hiding this comment.
Please replace platform => &platform.
With verbose replacements it is better to keep original code (to avoid replacement back):
#if 0 // code doesn't works due to ...
original code
#else
... verbose code ...
#endif
alalek
approved these changes
Sep 25, 2020
Contributor
|
Thanks for this @mshabunin, still couldn't figure out how to fix it. Please also is there anyway to support if someone has OpenCL 2.2 installed? I think the the only issue was the version was not specified somewhere or something. You guys are the best |
Contributor
Author
|
@Odianosen25 , OpenCL 2.2 should be backward compatible with 1.x. For example, I tested it with 2.1 runtime. |
Contributor
|
Thanks for the response, and yes it actually is. Just gives out a warning But its no show stopper. Kind regards |
4 tasks
SavyaSanchi-Sharma
pushed a commit
to SavyaSanchi-Sharma/opencv
that referenced
this pull request
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
resolves #18307
supersedes #18318
WITH_VA_INTELhandlingclGePlatformInfodirectly to read device nameHow to enable the feature:
# prerequisite: libva-dev cmake -DWITH_VA=ON -DWITH_VA_INTEL=ON ../opencvChecked in
--privilegedUbuntu 20.04 container with systemlibva2and OpenCL runtime 20.37.17906:Note: device name reading have been replaced due to an error with
PlatformInfoconstructor