Skip to content

hal_mmd: remove support for dynamically loading custom non-MMD libraries #264

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

Merged
merged 1 commit into from
Feb 16, 2023
Merged

hal_mmd: remove support for dynamically loading custom non-MMD libraries #264

merged 1 commit into from
Feb 16, 2023

Conversation

pcolberg
Copy link
Contributor

@pcolberg pcolberg commented Feb 1, 2023

When a dynamically loaded MMD library did not export the MMD API, tested by the absense of aocl_mmd_get_offline_info(), the runtime would reload the library into the global lookup scope, with the intention of providing the symbols to another, actual MMD library.

Since this feature was never documented or used in a reference BSP, it should be safe to remove and avoid polluting the global scope. As an alternative, an MMD library requiring additional symbols could dynamically link with the corresponding shared library at build time.

Signed-off-by: Peter Colberg [email protected]

When a dynamically loaded MMD library did not export the MMD API,
tested by the absense of aocl_mmd_get_offline_info(), the runtime
would reload the library into the global lookup scope, with the
intention of providing the symbols to another, actual MMD library.

Since this feature was never documented or used in a reference BSP,
it should be safe to remove and avoid polluting the global scope.
As an alternative, an MMD library requiring additional symbols could
dynamically link with the corresponding shared library at build time.

Signed-off-by: Peter Colberg <[email protected]>
@pcolberg pcolberg added this to the 2023.2 milestone Feb 1, 2023
@pcolberg pcolberg self-assigned this Feb 1, 2023
@pcolberg
Copy link
Contributor Author

pcolberg commented Feb 1, 2023

This is a prerequisite of #227.

Cc @IlanTruanovsky

@pcolberg pcolberg requested a review from zibaiwan February 1, 2023 01:47
Copy link
Contributor

@zibaiwan zibaiwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Peter!

@pcolberg
Copy link
Contributor Author

pcolberg commented Feb 1, 2023

I will merge this once hardware testing is complete.

@pcolberg pcolberg merged commit 6a01b2a into intel:main Feb 16, 2023
@pcolberg pcolberg deleted the remove-dlopen-global branch February 16, 2023 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants