OpenACC: Difference between revisions

Jump to navigation Jump to search
directives - text revision
(Forgot to change the section title)
(directives - text revision)
Line 4: Line 4:


= OpenACC directives =
= OpenACC directives =
Similar to [[OpenMP]], OpenACC can convert a for-loop into parallel code that would run on an accelerator. This can be achieved with compiler instructions <code>#pragma acc ...</code> before a structured block of code like a for-loop. All <code>pragma</code> directives are described in the [https://www.openacc.org/specification OpenACC specification].
Similar to [[OpenMP]], OpenACC can convert a <code>for</code> loop into parallel code that would run on an accelerator. This can be achieved with compiler directives <code>#pragma acc ...</code> before structured blocks of code like, for example, a <code>for</code> loop. All supported <code>pragma</code> directives are described in the [https://www.openacc.org/specification OpenACC specification].


= Code examples =
= Code examples =
cc_staff
782

edits

Navigation menu