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

Threaded Meshing #24

Open
sjkelly opened this issue Jun 13, 2019 · 2 comments
Open

Threaded Meshing #24

sjkelly opened this issue Jun 13, 2019 · 2 comments
Milestone

Comments

@sjkelly
Copy link
Member

sjkelly commented Jun 13, 2019

From what I can tell this should be possible in at least MarchingCubes and NaiveSurfaceNets. There are some other optimizations from the NaiveSurfaceNet implementation I would also like to apply to MarchingCubes and Marching Tetrahedra.

@SimonDanisch
Copy link
Member

Might be worth checking out julia master with the nrw threading architecture!

@sjkelly
Copy link
Member Author

sjkelly commented Jun 14, 2019

I am building 1.2 now. Some rough changes are on this branch:
https://github.com/JuliaGeometry/Meshing.jl/tree/sjk/threads

I think I am running into the closure inference bug on 1.1 because an Int declaration seems to be getting boxed and is triggering the GC quite a bit. Hopefully 1.2 helps. I have seen ~12x performance improvements on the distance field sampling side with threads and SIMD, but meshing is still the performance bottleneck in my applications.

Alternatively I may port a GPU example and use CUDANative and/or OpenCL.

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

2 participants