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

how to calculate Euclidean distance using GPU ? #137

Open
zsz00 opened this issue Jun 17, 2019 · 1 comment
Open

how to calculate Euclidean distance using GPU ? #137

zsz00 opened this issue Jun 17, 2019 · 1 comment

Comments

@zsz00
Copy link

zsz00 commented Jun 17, 2019

how to calculate Euclidean distance using GPU ?
I want to calculate Euclidean distance between 10000000x512 matrix and 10000000x512 matrix .
Can I use GPU ?? and how to do this??

@KristofferC
Copy link
Member

KristofferC commented Jun 17, 2019

The code here is quite old (before juia ran anything on GPUs) and written using loops so it isn't really gpu friendly. You should be able to fairly easy write the euclidean distance using broadcasting which works on GPU (https://math.stackexchange.com/questions/2240429/pairwise-distance-matrix).

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 a pull request may close this issue.

2 participants