-
Notifications
You must be signed in to change notification settings - Fork 11.5k
SYCL: Add all missing unary kernels #13074
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
base: master
Are you sure you want to change the base?
Conversation
dd0b15f
to
beed9b3
Compare
ggml/src/ggml-sycl/element_wise.cpp
Outdated
#include <sycl/detail/builtins/builtins.hpp> | ||
#include <sycl/nd_item.hpp> | ||
#include <sycl/nd_range.hpp> | ||
#include <sycl/range.hpp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the first header used? We should avoid relying on detail
includes if possible.
It is more common to just include <sycl/sycl.hpp>
. They could also all be removed if you're happy to rely on previous includes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. These includes gets auto imported by neovim editor. I need to disable autoimport in nvim-lsp.
Will remove it tomorrow.
beed9b3
to
bafafc3
Compare
Added missing absolute, ELU and SGN kernels.
test-backend-ops is passing with this change.
Note: Instead of doing
item_ct1.get_local_range(2) * item_ct1.get_group(2) + item_ct1.get_local_id(2);
as with how it has been for rest of it, I diditem_ct1.get_global_id(2)
for getting the idx position of an element here since operation of each element is independent of each other. Will be happy to hear thoughts about this.