OpenACC: Difference between revisions

(directives - text revision)
Line 7: Line 7:


= Code examples =
= Code examples =
OpenACC can be used in [[Fortran]], [[C]] and [[C++]], which we illustrate here using the simple example of an integral expression for the arctangent to compute an approximation for the value of <math display="block">\pi = 4\atan(1) = 4\int_0^1 \frac {dx}{1+x^2}</math>,
OpenACC can be used in [[Fortran]], [[C]] and [[C++]], which we illustrate here using the simple example of a definite integral which is equal to the arctangent of unity, i.e. π/4,
<tabs>
<tabs>
<tab name="C">
<tab name="C">
Bureaucrats, cc_docs_admin, cc_staff
2,318

edits