-
Notifications
You must be signed in to change notification settings - Fork 213
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
Replace internally developed CSR GEMM with a call to MKL #2959
base: main
Are you sure you want to change the base?
Conversation
Pull changes from oneDAL main branch
/intelci: run |
/intelci: run |
Pull the changes from main branch
…nto dev/kmeans_csr_upd
/intelci: run |
|
||
const auto distances_ptr = distances.get_data(); | ||
// Workaround. Sparse gemm cannot accept transposed dense inputs in oneMKL 2025.0. |
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.
How will we track this?
|
||
const auto finalize_range = | ||
bk::make_multiple_nd_range_2d({ num_clusters, local_size }, { 1, local_size }); | ||
|
||
// Compute the array of centroids by dividing the respective sums of observations | ||
// by the number of observations in each centroid |
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.
// by the number of observations in each centroid | |
// by the number of observations in each centroid |
#define INSTANTIATE_SINGLE_NODE(F, M, T) \ | ||
template struct ONEDAL_EXPORT infer_ops_dispatcher<dal::detail::data_parallel_policy, F, M, T>; |
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.
#define INSTANTIATE_SINGLE_NODE(F, M, T) \ | |
template struct ONEDAL_EXPORT infer_ops_dispatcher<dal::detail::data_parallel_policy, F, M, T>; | |
#define INSTANTIATE_NON_DISTRIBUTED(F, M, T) \ | |
template struct ONEDAL_EXPORT infer_ops_dispatcher<dal::detail::data_parallel_policy, F, M, T>; |
Maybe that's better? With multi-tile GPUs or single-node multi-GPU setups we would be using spdm
on a single node?
Thanks for adding extensive & helpful comments! |
handle_empty_clusters
kernel from sparse implementation. Now both dense and sparse implementations use the same kernel for empty clusters handling and give the same results on the same input data passed in sparse and dense layout respectively.PR completeness and readability
Testing
All the failures in CI are not related to sparse K-means algorithm.
No new functionality was introduced.
Performance