danieljfarrell / pvtrace

Optical ray tracing for luminescent materials and spectral converter photovoltaic devices
Other
97 stars 94 forks source link

Using multiple processes for parallelising computations #18

Closed danieljfarrell closed 3 years ago

danieljfarrell commented 5 years ago

Using https://docs.python.org/3/library/concurrent.futures.html

danieljfarrell commented 4 years ago

To-do. Make an example showing how to do this based on the hello world

jaydeshpande commented 3 years ago

This may be relevant too: https://numba.pydata.org/numba-doc/0.11/prange.html

This may come in handy for larger and more complex traces: https://numba.pydata.org/numba-doc/0.13/CUDAJit.html

danieljfarrell commented 3 years ago

It would be excellent to have a CUDA enabled ray-tracing algorithm in pvtrace. I think it would be a major rewrite though. We would have to spawn something like a million rays from a light source and somehow apply all the current logic across all the rays in the bundle. I can't quite see how that would all hang together at the moment.

danieljfarrell commented 3 years ago

This is now implemented in the CLI