OpenACC Tutorial - Adding directives: Difference between revisions

no edit summary
(Marked this version for translation)
No edit summary
Line 411: Line 411:
|title=Challenge: Add OpenACC directives <tt>kernels</tt> or <tt>parallel loop</tt>  
|title=Challenge: Add OpenACC directives <tt>kernels</tt> or <tt>parallel loop</tt>  
|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 <tt>step1.*</tt> contain the solution.  
# 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>-ta{{=}}tesla:managed</tt> and <tt>-Minfo{{=}}accel</tt> to your compiler flags.  
}}
}}
rsnt_translations
56,430

edits