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

Use iterative implementation for Utilities::pow to support Intel GPUs #15868

Merged
merged 1 commit into from Aug 11, 2023

Conversation

masterleinad
Copy link
Member

I need Utilities::pow to have an iterative implementation for compiling step-64 for Intel GPUs since SYCL doesn't allow recursive functions in device code.

@masterleinad masterleinad merged commit ece9620 into dealii:master Aug 11, 2023
15 checks passed
@masterleinad masterleinad deleted the iterative_utilities_pow branch August 11, 2023 03:54
Comment on lines +482 to +484
// The "exponentiation by squaring" algorithm used below has to be expressed
// in an iterative version since SYCL doesn't allow recursive functions used
// in device code.
Copy link
Member

Choose a reason for hiding this comment

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

I thought that restrictions on the use of recursion had been lifted sometime during the transition from Fortran 4 to C. How disappointing to see that this has been reintroduced in 2023 :-(

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.

None yet

4 participants