Changes

Jump to: navigation, search

GPU621/Chapel

316 bytes added, 22:46, 29 November 2022
Task Parallelism
writeln("2: output from spawned task 1");
writeln("2: output from spawned task 2");
}
*This loop form is like a for loop in which each iteration of the loop is executed by a distinct task.
writeln("4: ### The coforall loop ###");
coforall i in 1..n {
writeln("4: output from spawned task 1 (iteration ", i, ")");
writeln("4: output from spawned task 2 (iteration ", i, ")");
}
73
edits

Navigation menu