cc_staff
782
edits
(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 | 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 = |