Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
charm [2012/01/05 16:14] – créée admincharm [2012/01/05 16:36] (Version actuelle) – [Exemple : HelloWorld] admin
Ligne 1: Ligne 1:
-====== CHARM ======+====== CHARM++ ====== 
 +''From Wikipedia, the free encyclopedia''
  
 +Charm++ is a parallel object-oriented programming language based on C++ and developed in the Parallel Programming Laboratory at the University of Illinois. Charm++ is designed with the goal of enhancing programmer productivity by providing a high-level abstraction of a parallel program while at the same time delivering good performance on a wide variety of underlying hardware platforms. Programs written in Charm++ are decomposed into a number of cooperating message-driven objects called chares. When a programmer invokes a method on an object, the Charm++ runtime system sends a message to the invoked object, which may reside on the local processor or on a remote processor in a parallel computation. This message triggers the execution of code within the chare to handle the message asynchronously.
 ======Utilisation  ====== ======Utilisation  ======
  
 +Il faut tout d'abord charger les modules nécessaires :
 + 
 <code bash> <code bash>
 module load ompi charm++ module load ompi charm++
 </code> </code>
 +
 +Accès aux commandes telles que : ''charmc'' et ''charmrun''
 +
 +======Exemple : HelloWorld ======
 +
 +{{:arrayhelloworld.tar.gz|}}
 +
 +===== Exemple d'une exécution =====
 +
 +<code bash>
 +$ charmrun +p3 ./hello 10
 +Running "Hello World" with 10 elements using 3 processors.
 +"Hello" from Hello chare # 0 on processor 0 (told by -1).
 +"Hello" from Hello chare # 1 on processor 1 (told by 0).
 +"Hello" from Hello chare # 2 on processor 2 (told by 1).
 +"Hello" from Hello chare # 3 on processor 0 (told by 2).
 +"Hello" from Hello chare # 4 on processor 1 (told by 3).
 +"Hello" from Hello chare # 5 on processor 2 (told by 4).
 +"Hello" from Hello chare # 6 on processor 0 (told by 5).
 +"Hello" from Hello chare # 7 on processor 1 (told by 6).
 +"Hello" from Hello chare # 9 on processor 0 (told by 8).
 +"Hello" from Hello chare # 8 on processor 2 (told by 7). 
 +</code>
 +======Liens  ======
 +
 +http://charm.cs.uiuc.edu/manuals/html/charm++/
  • charm.1325780045.txt.gz
  • Dernière modification : 2015/02/25 08:45
  • (modification externe)