3 ms·
For example a for loop is typical serial semantics: for (i=0;i<10;i++) { a[i] = i*10; } ... but it's obvious that this loop can execute all pass
by snorkel 15y ago
For example a for loop is typical serial semantics:
for (i=0;i<10;i++) {
a[i] = i*10;
}
... but it's obvious that this loop can execute all passes in parallel so we want to pass a concurrency suggestion to the compiler without losing the readability of the code, so perhaps something like this block syntax:
parallel {
for (i=0;i<10;i++) {
a[i] = i*10;
}
}