-
Notifications
You must be signed in to change notification settings - Fork 39
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: Make sure to use a large enough workgroup size for tree traversal #931
base: master
Are you sure you want to change the base?
SYCL: Make sure to use a large enough workgroup size for tree traversal #931
Conversation
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.
Should nearest be changed too? Should the kernel in MST be changed as well?
Does it affect all kernels?
// FIXME_SYCL | ||
#ifdef KOKKOS_ENABLE_SYCL | ||
if constexpr (std::is_same_v<ExecutionSpace, Kokkos::Experimental::SYCL>) | ||
policy.set_chunk_size(1024); |
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.
Can you please add a comment on the considerations that went into choosing 1024?
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.
Not quite sure if there is much behind it rather than that choosing the maximum gave much better performance (than 32 which is what the compiler chose) and I couldn't find a different workgroup size that gave better results (but results don't differ much choosing between 256 and 1024 threads per workgroup).
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.
Can you please post the results in this issue for different workgroup sizes?
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.
I'll share it privately.
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.
Please cc me
Looks like the MST algorithm ( |
Forcing the workgroup size for the tree traversal to 1024 for
SYCL
, improves the tree traversal by 25% in the DBSCAN benchmark.