Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| developpement:activites:integration:xeonphi4wheezy [2014/04/24 06:24] – [Compilation du module noyau] equemene | developpement:activites:integration:xeonphi4wheezy [2014/10/13 17:37] (Version actuelle) – [Installation des paquets MPSS] equemene | ||
|---|---|---|---|
| Ligne 116: | Ligne 116: | ||
| ==== Chargement du module MIC ==== | ==== Chargement du module MIC ==== | ||
| - | Chargement du module par la commande | + | Chargement du module par la commande |
| Dans le '' | Dans le '' | ||
| Ligne 169: | Ligne 169: | ||
| / | / | ||
| /etc/mpss | /etc/mpss | ||
| - | / | + | / |
| - | Ceci n'est plus le cas dans la Debian Wheezy. | + | Ceci n'est plus le cas dans la Debian Wheezy. Il est donc nécessaire de rajouter (salement) un chemin allant chercher les librairies dans ''/ |
| - | Installation d'un '' | + | Installation d'un '' |
| < | < | ||
| Ligne 215: | Ligne 215: | ||
| </ | </ | ||
| - | Pour démarrer le système | + | Pour démarrer le système |
| < | < | ||
| mkdir / | mkdir / | ||
| Ligne 221: | Ligne 221: | ||
| </ | </ | ||
| - | Lancement avec la commande suivante : '' | + | Lancement avec la commande suivante : '' |
| < | < | ||
| [Warning] mic0: Generating compat network config file. This will be removed in the 3.2 release | [Warning] mic0: Generating compat network config file. This will be removed in the 3.2 release | ||
| Ligne 287: | Ligne 287: | ||
| Vérification du nombre de processeurs avec '' | Vérification du nombre de processeurs avec '' | ||
| + | ==== Installation du composant OpenCL ==== | ||
| - | ===== Historique ===== | + | === Installation des composants OpenCL standards |
| + | < | ||
| + | apt-get install amd-clinfo amd-libopencl1 amd-opencl-icd | ||
| + | </ | ||
| - | ==== Des débuts difficiles pour une prise en main impossible ==== | + | === Vérification du fonctionnement de OpenCL avec clinfo |
| - | La société Intel a mis à disposition fin octobre 2013 un Xeon Phi 7120P à disposition de Emmanuel Quémener, du Centre Blaise Pascal. | + | < |
| + | Number of platforms: | ||
| + | Platform Profile: | ||
| + | Platform Version: | ||
| + | Platform Name: AMD Accelerated Parallel Processing | ||
| + | Platform Vendor: | ||
| + | Platform Extensions: | ||
| - | La carte Intel Xeon Phi 7120P se présente sous forme d'une carte PCI Express d'une taille équivalente à celle d'une carte Nvidia GTX Titan ou Nvidia Tesla. Elle nécessite | + | Platform Name: AMD Accelerated Parallel Processing |
| + | Number of devices: | ||
| + | Device Type: | ||
| + | Device ID: | ||
| + | Board name: | ||
| + | Max compute units: | ||
| + | Max work items dimensions: | ||
| + | Max work items[0]: | ||
| + | Max work items[1]: | ||
| + | Max work items[2]: | ||
| + | Max work group size: | ||
| + | Preferred vector width char: 16 | ||
| + | Preferred vector width short: | ||
| + | Preferred vector width int: 4 | ||
| + | Preferred vector width long: 2 | ||
| + | Preferred vector width float: | ||
| + | Preferred vector width double: | ||
| + | Native vector width char: 16 | ||
| + | Native vector width short: | ||
| + | Native vector width int: 4 | ||
| + | Native vector width long: 2 | ||
| + | Native vector width float: | ||
| + | Native vector width double: | ||
| + | Max clock frequency: | ||
| + | Address bits: 64 | ||
| + | Max memory allocation: | ||
| + | Image support: | ||
| + | Max number of images read arguments: | ||
| + | Max number of images write arguments: | ||
| + | Max image 2D width: | ||
| + | Max image 2D height: | ||
| + | Max image 3D width: | ||
| + | Max image 3D height: | ||
| + | Max image 3D depth: | ||
| + | Max samplers within kernel: | ||
| + | Max size of kernel argument: | ||
| + | Alignment (bits) of base address: | ||
| + | Minimum alignment (bytes) for any datatype: | ||
| + | Single precision floating point capability | ||
| + | Denorms: | ||
| + | Quiet NaNs: Yes | ||
| + | Round to nearest even: Yes | ||
| + | Round to zero: Yes | ||
| + | Round to +ve and infinity: | ||
| + | IEEE754-2008 fused multiply-add: | ||
| + | Cache type: | ||
| + | Cache line size: 64 | ||
| + | Cache size: | ||
| + | Global memory size: | ||
| + | Constant buffer size: | ||
| + | Max number of constant args: 8 | ||
| + | Local memory type: | ||
| + | Local memory size: | ||
| + | Kernel Preferred work group size multiple: | ||
| + | Error correction support: | ||
| + | Unified memory for Host and Device: | ||
| + | Profiling timer resolution: | ||
| + | Device endianess: | ||
| + | Available: | ||
| + | Compiler available: | ||
| + | Execution capabilities: | ||
| + | Execute OpenCL kernels: | ||
| + | Execute native function: | ||
| + | Queue properties: | ||
| + | Out-of-Order: | ||
| + | Profiling : Yes | ||
| + | Platform ID: | ||
| + | Name: Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz | ||
| + | Vendor: | ||
| + | Device OpenCL C version: | ||
| + | Driver version: | ||
| + | Profile: | ||
| + | Version: | ||
| + | Extensions: | ||
| + | </ | ||
| + | |||
| + | Seuls les processeurs CPU sont détectés | ||
| + | |||
| + | === Installation des composants Python OpenCL === | ||
| + | |||
| + | < | ||
| + | python-pyopencl python-pyopencl-doc | ||
| + | </ | ||
| + | |||
| + | === Vérification du fonctionnement === | ||
| + | |||
| + | < | ||
| + | | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | ('Execution time of test without OpenCL: | ||
| + | =============================================================== | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | --------------------------------------------------------------- | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | Execution time of test: 0.00112901 s | ||
| + | Results OK | ||
| + | root@grizzly: | ||
| + | root@grizzly: | ||
| + | (' | ||
| + | =============================================================== | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | --------------------------------------------------------------- | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | Execution time of test: 0.000632971 s | ||
| + | Results OK | ||
| + | </ | ||
| + | |||
| + | Intel publie ses [[http:// | ||
| + | |||
| + | La dernière version est la 3.2.1.16712 | ||
| + | |||
| + | ==== Récupération de la dernière version : ==== | ||
| + | |||
| + | < | ||
| + | cd /root | ||
| + | wget http:// | ||
| + | |||
| + | tar xzf intel_sdk_for_ocl_applications_xe_2013_r3_sdk_3.2.1.16712_x64.tgz | ||
| + | cd / | ||
| + | </ | ||
| + | |||
| + | ==== Conversion des RPM en DEB ==== | ||
| + | |||
| + | < | ||
| + | ls *.rpm | xargs -I ' | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | opencl-1.2-base_3.2.1.16712-2_amd64.deb generated | ||
| + | opencl-1.2-devel_3.2.1.16712-2_amd64.deb generated | ||
| + | opencl-1.2-intel-cpu_3.2.1.16712-2_amd64.deb generated | ||
| + | opencl-1.2-intel-devel_3.2.1.16712-2_amd64.deb generated | ||
| + | </ | ||
| + | |||
| + | ==== Installation des paquets ==== | ||
| + | |||
| + | < | ||
| + | dpkg -i *.deb | ||
| + | </ | ||
| + | |||
| + | Un lien est réalisé entre ''/ | ||
| + | |||
| + | < | ||
| + | echo / | ||
| + | echo / | ||
| + | ldconfig | ||
| + | |||
| + | clinfo | grep " | ||
| + | </ | ||
| + | |||
| + | Plus besoin d' | ||
| + | |||
| + | 3 composants sont détectés : | ||
| + | < | ||
| + | Device Type: | ||
| + | Device Type: | ||
| + | Device Type: | ||
| + | </ | ||
| + | |||
| + | Lancement du test Python OpenCL ' | ||
| + | (' | ||
| + | =============================================================== | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | --------------------------------------------------------------- | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | Execution time of test: 0.000990689 s | ||
| + | Results OK | ||
| + | =============================================================== | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | --------------------------------------------------------------- | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | / | ||
| + | "to see more.", | ||
| + | Execution time of test: 0.00065297 s | ||
| + | Results OK | ||
| + | =============================================================== | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | --------------------------------------------------------------- | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | (' | ||
| + | Execution time of test: 0.00400693 s | ||
| + | Results OK | ||
| + | </ | ||
| + | ===== Historique ===== | ||
| - | La première étape a été de trouver un socle pour l' | ||