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

Remove unused kdtree and parallel components from grid_traversal.pyx #1430

Merged
merged 1 commit into from Jun 14, 2017

Conversation

ngoldbaum
Copy link
Member

@ngoldbaum ngoldbaum commented May 29, 2017

I noticed that grid_traversal.pyx was cimporting functions in cython.parallel but not actually using them. This means this file doesn't need to be compiled with OpenMP support.

While fixing that, I noticed that we were also using code from this kdtree_utils wrapper for a C KDTree implementation. It turns out, as far as I can see, the C kdtree we include here is only used for a stub feature (something related to rendering star particles, i think?) in the old volume rendering interface. Given that this feature is in deprecated code and we are planning to include a much more featureful C++ kdtree in the future, I think we should remove this C KDTree. This also means we're no longer shipping a big hunk of C code that none of us wrote.

@matthewturk
Copy link
Member

I'm sort of -1 on removing the kdtree, as I believe that others (perhaps @chummels ) may want to re-enable star rendering in the future, and it is the simplest way toward that. However, I'm not going to hold up the PR with that.

@ngoldbaum
Copy link
Member Author

By the time that happens we should either have a new dependency on cykdtree or it will be vendored in the yt source, so I don't think they'll want to use this bundled KDTree.

@jzuhone jzuhone merged commit 5e1a067 into yt-project:master Jun 14, 2017
@ngoldbaum ngoldbaum deleted the cython-setup branch June 16, 2017 16:36
matthewturk pushed a commit to matthewturk/yt that referenced this pull request Apr 17, 2018
Remove unused kdtree and parallel components from grid_traversal.pyx
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.

None yet

4 participants