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

parallelize histogram creation #29

Open
skuschel opened this issue Jun 11, 2015 · 1 comment
Open

parallelize histogram creation #29

skuschel opened this issue Jun 11, 2015 · 1 comment
Labels
enhancement Hacktoberfest beginner friendly task / part of Hacktoberfest low priority particles

Comments

@skuschel
Copy link
Owner

skuschel commented Jun 11, 2015

There are two ways to do this:

  1. The outer for loops (for i in xrange(n)) should be parallelized within cython. This change is to be made in https://github.com/skuschel/postpic/blob/master/postpic/particles/_particlestogrid.pyx
  2. The use of the cython function should be parallelized in python. This change is to be made in https://github.com/skuschel/postpic/blob/master/postpic/particles/_routines.py#L125

I suspect, that option 2 seems a little better to me, however benchmarking is needed. Benchmarks are already carried out as part of the tests.

this might help
http://www.dlr.de/sc/Portaldata/15/Resources/dokumente/PyHPC2013/submissions/pyhpc2013_submission_2.pdf

http://cs.nyu.edu/courses/spring15/CSCI-UA.0480-003/lecture13.pdf

@skuschel skuschel added enhancement Field core routines affected low priority labels Jun 11, 2015
@skuschel
Copy link
Owner Author

There is some proof-of-concept in the (outdated) cythonparallel branch. However it needs to be tests if this is actually increasing the performance.

@skuschel skuschel added particles and removed Field core routines affected labels Dec 19, 2017
@skuschel skuschel added the Hacktoberfest beginner friendly task / part of Hacktoberfest label Oct 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Hacktoberfest beginner friendly task / part of Hacktoberfest low priority particles
Projects
None yet
Development

No branches or pull requests

1 participant