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

Cannot have multiple maps in a single grppi expression #376

Open
danielmartinezdavies opened this issue Mar 13, 2021 · 0 comments
Open

Cannot have multiple maps in a single grppi expression #376

danielmartinezdavies opened this issue Mar 13, 2021 · 0 comments

Comments

@danielmartinezdavies
Copy link

Trying to use more than one output requires using more than one grppi expression. For example:

for(int i = 0; i < 10; i++){
        a[i] = 0;
        b[i] = 0;
}

has to be represented as:

grppi::map(grppi::dynamic_execution(), a, a, [=](auto grppi_a){return  0;});
grppi::map(grppi::dynamic_execution(), b, b, [=](auto grppi_b){return  0;});
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

No branches or pull requests

1 participant