OpenACC Tutorial - Adding directives: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 479: Line 479:
|content=
|content=
# Modify the functions <tt>matvec</tt>, <tt>waxpby</tt> and <tt>dot</tt> to use OpenACC. You may use either the <tt>kernels</tt> or the <tt>parallel loop</tt> directives. The directories step1.* from the [https://github.com/calculquebec/cq-formation-openacc Github repository] contain solutions.
# Modify the functions <tt>matvec</tt>, <tt>waxpby</tt> and <tt>dot</tt> to use OpenACC. You may use either the <tt>kernels</tt> or the <tt>parallel loop</tt> directives. The directories step1.* from the [https://github.com/calculquebec/cq-formation-openacc Github repository] contain solutions.
# Modify the Makefile to add <tt>-ta{{=}}tesla:managed</tt> and <tt>-Minfo{{=}}accel</tt> to your compiler flags.  
# Modify the Makefile to add <tt>-acc -gpu{{=}}managed</tt> and <tt>-Minfo{{=}}accel</tt> to your compiler flags.  
}}
}}


Bureaucrats, cc_docs_admin, cc_staff, rsnt_translations
2,837

edits

Navigation menu