Skip to content
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

Remove reference libraries define from config header #584

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

npmiller
Copy link
Contributor

@npmiller npmiller commented Oct 7, 2024

Description

The config.hpp oneMKL header contains both the macros for which domains are enabled, but it also contains the absolute path to the reference libraries when the tests are built.

This is a problem because then when using the install target, this header gets put into the install directory and still contains absolute path to testing infrastructure.

This patch splits out the reference libraries path into a separate config header only used by the tests and that won't get installed, that way a oneMKL installation will have a clean config header.

Checklist

All Submissions

  • Do all unit tests pass locally? Attach a log.

    • I don't have easy access to all the hardware to check every single configuration but the change is the same across the board so it should be fine, here are the logs on CUDA:
    • blas.log
    • lapack.log
  • Have you formatted the code using clang-format?

Instead we can just define them in the CMake for the tests that need it.
This is much better because the config header is installed by the
default install target, so oneMKL installation would end up with
absolute path to the reference libraries.
Copy link
Contributor

@Rbiessy Rbiessy left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM.
@s-Nick FYI this will have an impact on #571 once this is merged.

@Rbiessy Rbiessy requested a review from a team October 7, 2024 15:32
@npmiller npmiller changed the title Move reference libraries define to tests header Remove reference libraries define from config header Oct 7, 2024
Copy link
Contributor

@mkrainiuk mkrainiuk left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks.

@Rbiessy Rbiessy merged commit c5ac41f into oneapi-src:develop Oct 9, 2024
6 checks passed
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.

3 participants