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

Is pykdtree free-threading compatible? #125

Open
djhoese opened this issue Sep 4, 2024 · 0 comments
Open

Is pykdtree free-threading compatible? #125

djhoese opened this issue Sep 4, 2024 · 0 comments
Assignees

Comments

@djhoese
Copy link
Collaborator

djhoese commented Sep 4, 2024

Python 3.13 has a free-threading mode that is disabled by default. See this guide for migrating extensions to be compatible:

https://py-free-threading.github.io/porting

My question is, is pykdtree compatible with free-threading? It does a lot of openmp and nogil stuff for the majority of its work and everything revolves around the idea of a KDTree object so I don't see why it couldn't be. I mean, if two separate threads called .query at the same time that should be fine as this method initializes all structures it uses and returns a single result. There is no caching or global state involved.

@storpipfugl Any concerns that you can think of as the original creator of this code?

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

No branches or pull requests

3 participants