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

sycl : fix powf call in device code #8368

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

Alcpz
Copy link
Collaborator

@Alcpz Alcpz commented Jul 8, 2024


The use of powf, while possible, is not the intended SYCL approach for using math builtins in device code. To guarantee precision and behavior in all backends, we have to access these using the sycl namespace.

This PR only affects correctness of the code. No changes in performance. No changes in behavior.

@Alcpz
Copy link
Collaborator Author

Alcpz commented Jul 8, 2024

Copy link
Collaborator

@airMeng airMeng left a comment

Choose a reason for hiding this comment

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

nice catch

Copy link
Contributor

@OuadiElfarouki OuadiElfarouki left a comment

Choose a reason for hiding this comment

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

LGTM!

@OuadiElfarouki OuadiElfarouki merged commit 2ec846d into ggerganov:master Jul 8, 2024
53 checks passed
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Jul 13, 2024
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