OpenACC Tutorial - Adding directives: Difference between revisions

Fixing another table row with translated content
(Trying to fix the table with translation)
(Fixing another table row with translated content)
Line 97: Line 97:
}
}
</syntaxhighlight> || <syntaxhighlight lang="cpp" line>
</syntaxhighlight> || <syntaxhighlight lang="cpp" line>
void loopBody(A, B, C, i)
void kernelName(A, B, C, i)
{
{
   C[i] = A[i] + B[i];
   C[i] = A[i] + B[i];
}
}
</syntaxhighlight>
</syntaxhighlight>
|-<translate><!--T:11-->
<translate><!--T:11-->
|-
| Calculates sequentially from index <tt>i=0</tt> to <tt>i=N-1</tt>, inclusive. || Each compute core calculates for one value of <tt>i</tt>.</translate>
| Calculates sequentially from index <tt>i=0</tt> to <tt>i=N-1</tt>, inclusive. || Each compute core calculates for one value of <tt>i</tt>.</translate>
|}
|}
cc_staff
782

edits