... | @@ -42,11 +42,12 @@ Then, most of the task implementation will be composed of tasks defined around g |
... | @@ -42,11 +42,12 @@ Then, most of the task implementation will be composed of tasks defined around g |
|
# Remove nested tasks
|
|
# Remove nested tasks
|
|
|
|
|
|
We would like to leverage taskiter to remove the overhead of task creation. However, as taskiter is not applying on nested task, we would like to remove them as most as we can. The current structure is :
|
|
We would like to leverage taskiter to remove the overhead of task creation. However, as taskiter is not applying on nested task, we would like to remove them as most as we can. The current structure is :
|
|
`for (int token=0; token < T; token+=grainsize) {
|
|
```
|
|
|
|
for (int token=0; token < T; token+=grainsize) {
|
|
#pragma oss task
|
|
#pragma oss task
|
|
{
|
|
{
|
|
#pragma oss taskloop
|
|
#pragma oss taskloop
|
|
for ( /* innerloop */)
|
|
for ( /* innerloop */)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
` |
|
``` |
|
\ No newline at end of file |
|
\ No newline at end of file |