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

Add CMake SYCL changes to oneDPLConfig.cmake.in #1964

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

carbotaniuman
Copy link
Contributor

This was copied over directly from CMakeLists.txt and is required for AdaptiveCPP to be recognized as a SYCL compiler. These changes were merged in #1949 so this appears to have been an oversight.

Copy link
Contributor

@dmitriy-sobolev dmitriy-sobolev left a comment

Choose a reason for hiding this comment

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

Thank you very much, @carbotaniuman. That's indeed an oversight.

Let me attach a patch to your changes:
dpl_config_fix.patch, where it is suggested:

  • Adding CheckCXXCompilerFlag for check_cxx_compiler_flag. Update: it is already there, no need to add it.
  • Adjusting the logic with SYCL_SUPPORT and passing -fsycl option.

Besides that, the PR looks good to me.

@mmichel11
Copy link
Contributor

Thank you for this patch. With @dmitriy-sobolev's minor suggestion, this PR looks good to me as well.

This was copied over directly from CMakeLists.txt and is required
for AdaptiveCPP to be recognized as a SYCL compiler.
Copy link
Contributor

@dmitriy-sobolev dmitriy-sobolev left a comment

Choose a reason for hiding this comment

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

The PR looks good to me.

I've tested it by installing oneDPL, and using that installation in a micro project with find_package(oneDPL) in its CMakeLists.txt. I covered icx (Windows), dpcpp-cl (Windows) and acpp (Linux).

@dmitriy-sobolev dmitriy-sobolev merged commit 796299d into oneapi-src:main Dec 13, 2024
22 checks passed
@dmitriy-sobolev
Copy link
Contributor

@carbotaniuman once again, thanks for the PR. Feel free to submit a PR updating CREDITS.txt if you wish your contribution to be mentioned there.

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