Skip to content

Improve parallelisation#60

Open
kloetzl wants to merge 2 commits into
tseemann:masterfrom
kloetzl:master
Open

Improve parallelisation#60
kloetzl wants to merge 2 commits into
tseemann:masterfrom
kloetzl:master

Conversation

@kloetzl

@kloetzl kloetzl commented Dec 31, 2025

Copy link
Copy Markdown
Contributor

Happy 2026 all round!

I like the improvements in multi-threading, but as implemented there are issues with the output. On larger datasets the output will be jumbled as the prints may happen in arbitrary order. So we have to separate the computation, parallelize that and then use the main thread for the output. Unfortunately, this requires us to store a matrix of O(N^2). Use molten if that should be an issue.

The two sequence parameters in the distance function were marked as restrict. That means we cannot pass in the same sequence to implicitly get zero. I fixed that by skipping the self-comparison.

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.

1 participant