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

Define HPX_COMPUTE_CODE in builds with SYCL #6310

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

G-071
Copy link
Member

@G-071 G-071 commented Jul 25, 2023

This resolves a compilation issue where timestamp_cuda is required in device code for a certain build configuration (using ONEAPI/SYCL/dpcpp with an enabled CUDA backend and specific GPU architecture) but not found. The underlying issue: The include command for the timestamp_cuda header is protected with an ifdef HPX_COMPUTE_CODE and the header was thus not included - hence the timestamp method was not found, and the code did not compile in this configuration!

This commit resolves the issue! Not by changing or removing the ifdef timestamp guard, but instead by defining HPX_COMPUTE_CODE for SYCL builds in the compiler_specific.hpp header as well. This ensures that the behavior for non-SYCL builds stays the same as before.

This resolves a compilation issue where timestamp_cuda is required for a
certain build configuration (using ONEAPI/SYCL/dpcpp with an enabled
CUDA backend and specific GPU architecture) but not found. The
underlying issue is that the include for the timestamp_cuda header is
protected with a ifdef HPX_COMPUTE_CODE and the header was thus not
included  - hence the timestamp method was not found and
the code did not compile in this configuration!

This commit resolves the issue! Not by changing or removing the ifdef
timestamp guard, but instead by defining HPX_COMPUTE_CODE for SYCL
builds in the compiler_specific header. This ensures that the behaviour
for non-SYCL builds stays the same as before!
Copy link
Member

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@hkaiser
Copy link
Member

hkaiser commented Jul 27, 2023

bors merge

@bors
Copy link

bors bot commented Jul 27, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit e8a9660 into STEllAR-GROUP:master Jul 27, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants