Translations:OpenACC Tutorial - Adding directives/46/fr: Difference between revisions

From Alliance Doc
Jump to navigation Jump to search
(Created page with "== Exercice : utiliser <tt>kernels</tt> ou <tt>parallel loop</tt> == {{Challenge |title=Exercice : utiliser <tt>kernels</tt> ou <tt>parallel loop</tt> |content= # Modifiez le...")
 
No edit summary
Line 1: Line 1:
== Exercice : utiliser <tt>kernels</tt> ou <tt>parallel loop</tt> ==
 
{{Challenge
{{Challenge
|title=Exercice : utiliser <tt>kernels</tt> ou <tt>parallel loop</tt>  
|title=Exercice : utiliser <tt>kernels</tt> ou <tt>parallel loop</tt>  

Revision as of 15:34, 11 May 2017

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (OpenACC Tutorial - Adding directives)
{{Challenge
|title=Challenge: Add OpenACC directives <tt>kernels</tt> or <tt>parallel loop</tt> 
|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 Makefile to add <tt>-acc -gpu{{=}}managed</tt> and <tt>-Minfo{{=}}accel</tt> to your compiler flags. 
}}


Exercice : utiliser kernels ou parallel loop
  1. Modifiez les fonctions matvec, waxpby et dot . Vous pouvez utiliser soit kernels , soit parallel loop. La solution se trouve dans les répertoires step1.*.
  2. Modifiez le Makefile en ajoutant -ta=tesla:managed et -Minfo=accel aux indicateurs pour le compilateur.