-
Notifications
You must be signed in to change notification settings - Fork 98
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
Quite different performance of pairwise on CPU vs GPU #143
Comments
PS: the GPU support of |
|
I think |
Requires.jl makes loading this package 20x slower (#123 (comment)). |
Technically, it's Tables.jl. In my laptop, Requires.jl slows loading this package by 4-6x # with Requires.jl
julia> @time using Distances
0.276511 seconds (403.27 k allocations: 21.736 MiB, 6.36% gc time)
# without Requires.jl
julia> @time using Distances
0.063862 seconds (63.23 k allocations: 3.801 MiB) But |
One solution to this would be to choose the best algorithm based on traits like those provided by ArrayInterface. |
I found the
pairwise
withSqEuclidean
is faster than my own implementation on CPU but slower on GPU. Any idea why and possible optimization on Distances.jl side?MWE:
The text was updated successfully, but these errors were encountered: