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

feat: use gpu to compute the distance matrix #24

Merged
merged 8 commits into from
Jun 24, 2024
Merged

feat: use gpu to compute the distance matrix #24

merged 8 commits into from
Jun 24, 2024

Conversation

loiccoyle
Copy link
Owner

@loiccoyle loiccoyle commented Jun 24, 2024

  • add Mosaic.d_matrix_cuda to compute the matrix with gpu (requires installing with pip install 'phomo[cuda]')
  • update numpy version to 2.0.0
  • fix some minor issues in tests

breaking changes:

  • Mosaic.compute_d_matrix renamed to Mosaic.d_matrix
  • Mosaic.build takes only the distance matrix and no longer computes it:
# before
mosaic.build(metric="greyscale")  
# after
mosaic.build(mosaic.d_matrix(metric="greyscale"))

closes #3

@loiccoyle loiccoyle linked an issue Jun 24, 2024 that may be closed by this pull request
@loiccoyle loiccoyle merged commit 1365308 into main Jun 24, 2024
10 checks passed
@loiccoyle loiccoyle deleted the feat/gpu branch June 24, 2024 17:14
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 this pull request may close these issues.

Can add GPU support
1 participant