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

Add support for multi-dimensional parallel_for #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

javier-cabezas
Copy link

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
Copy link
Author

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.

@palango
Copy link

palango commented Jan 18, 2016

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

@harrism
Copy link
Owner

harrism commented Jan 18, 2016

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
#15 (comment).

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

Successfully merging this pull request may close these issues.

3 participants