hemi icon indicating copy to clipboard operation
hemi copied to clipboard

Add support for multi-dimensional parallel_for

Open javier-cabezas opened this issue 8 years ago • 3 comments

I have implemented support for multi-dimensional (up to 3 dimensions) parallel_for. I have added an optional multidimensional index type for programmers to use in parallel_for invocations (plain integer values can be still used for 1D parallel_for). Grid and block in execution policy are dim3 values, now. However, in this first implementation blocks and grids are flattened to 1D. The rest of the dimensions in the iteration space are iterated within each thread. More intelligent policies can be implemented later. Check the modified example in parallel_for.

Please, let me know if you find this feature interesting or if I need to change anything to have it integrated.

javier-cabezas avatar Oct 04 '15 11:10 javier-cabezas

I have redone my previous pull request, removing all the changes due to spacing. I didn't know how to modify the previous request so I have created a new one. Sorry for the inconvenience.

javier-cabezas avatar Oct 04 '15 17:10 javier-cabezas

Any progress or ideas on this? Would be helpful for me as well.

palango avatar Jan 18 '16 13:01 palango

Sorry, this one is complex and I haven't had enough time to spend on it yet. The pull request really should include some tests, too.

On Tue, Jan 19, 2016 at 12:26 AM Paul Lange [email protected] wrote:

Any progress or ideas on this? Would be helpful for me as well.

— Reply to this email directly or view it on GitHub https://github.com/harrism/hemi/pull/15#issuecomment-172526870.

harrism avatar Jan 18 '16 13:01 harrism