OpenACC: Difference between revisions

Line 21: Line 21:


= Code examples =
= Code examples =
OpenACC can be used in [[Fortran]], [[C]] and [[C++]], which we illustrate here using the simple example of a definite integral to compute an approximation for the value of <math>\pi</math>,
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\int_0^1 \frac {dx}{1+x^2}</math>,
<tabs>
<tabs>
<tab name="C">
<tab name="C">
Bureaucrats, cc_docs_admin, cc_staff
2,318

edits