Python and VTK with multiprocessing or joblib libraries

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Python and VTK with multiprocessing or joblib libraries

Martin Reed

Hi All,

 

I am trying to parallelize a ray tracing algorithm in VTK with the python wrapper.

I have the core algo working but now need to port it onto a multicore machine.

*) 2 vtkPoints objects that represent the points on a building and the points on a skydome.

*) vtkOBBTree object that represents the surrounding objects that potentially block the rays

*) evaluate <psource, pTarget, obbTree> so get a true/false value for whether the ray intersects with anything in between (IntersectWithLine method of obbTree)

 

What is the best way to parallelize this? I have tried joblib and multiprocessing but have an issue with ‘pickling’, seems vtk objects cannot be pickled for use with these libraries(?)

Any recommendations/examples on how best to do this?

 

Thanks,

martin

 




Important: This email is confidential and may be privileged. If you are not the intended recipient, please delete it and notify us immediately; you should not copy or use it for any purpose, nor disclose its contents to any other person. Thank you.

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: Python and VTK with multiprocessing or joblib libraries

suryadwar
I am also facing a similar problem with vtkOBBTree. Is there any solution now
to use multiprocessing library with vtkOBBTree?



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers