Installation d’un simulateur Cray

Installation d’un simulateur Cray.

Distribution : 2013-09-25-wheezy-raspbian
1) Installation du compilation g++ version 4.7 :

pi@raspberrypi ~ $ sudo apt-get install gcc-4.7 g++-4.7

2) Installation des paquetages :
Version de Boost > 1.48

pi@raspberrypi ~ $ sudo apt-get install libncurses5-dev  libboost1.50-dev libboost-system1.50-dev libboost-filesystem1.50-dev libboost-regex1.50-dev libboost-thread1.50-dev xterm

3) Répertoire de travail :

pi@raspberrypi ~ $ mkdir -p SIMULATEUR/CRAY
pi@raspberrypi ~ $ cd SIMULATEUR/CRAY/
pi@raspberrypi ~/SIMULATEUR/CRAY $

4) Téléchargement du code source :

pi@raspberrypi ~/SIMULATEUR/CRAY $ wget http://www.modularcircuits.com/download/cray_files/cray_xmp_sim-0.92.zip

5) Décompression de l’archive :

pi@raspberrypi ~/SIMULATEUR/CRAY $ unzip cray_xmp_sim-0.92.zip

6) Compilation :

pi@raspberrypi ~/SIMULATEUR/CRAY $ cd sw/
pi@raspberrypi ~/SIMULATEUR/CRAY/sw $ make CXX=g++-4.7

Erreur :

cray_logger.h:22:33: error: ‘_itoa’ was not declared in this scope

Solution :
Ouvrir :

sw/sim_lib/cray_logger.h

Chercher :

    class CLogger_c: public StreamLogger_c {
private:

Ajouter après :

      static void _itoa(size_t inst, char *numb, size_t base) {
		if (base == 10) {
			sprintf(numb,"%d",(unsigned) inst);
		} else if (base == 16) {
			sprintf(numb,"%x",(unsigned) inst);
		} else if (base == 8) {
			sprintf(numb,"%o",(unsigned) inst);
		}
	}

7) Installation et vérification :

pi@raspberrypi ~/SIMULATEUR/CRAY/sw $ cp _bin/linux_release/* ../bin/
pi@raspberrypi ~/SIMULATEUR/CRAY/sw $ cd ../bin/
pi@raspberrypi ~/SIMULATEUR/CRAY/bin $ rm *.exe
pi@raspberrypi ~/SIMULATEUR/CRAY/bin $ ls
boot_tape        dataset_extractor  exp_disk_create  iop_boot.img  wy50_con
cray_xmp_disasm  disk_decode        exp_disk.img     iop_disasm    xmp_sim.cfg
cray_xmp_sim     dump               file_splitter    ovl_split

8) Configuration :
Ouvrir :

bin/xmp_sim.cfg

Chercher :

wy50_con

Remplacer par :

./wy50_con

Supprimer :

-h 40

9) Lancement de l’émulateur Cray :

pi@raspberrypi ~/SIMULATEUR/CRAY/bin $ ./cray_xmp_sim xmp_sim.cfg

10) Capture d’écran :
11) Lien :
http://lektiondestages.blogspot.fr/2013/05/installing-and-switching-gccg-versions.html
http://modularcircuits.tantosonline.com/blog/articles/the-cray-files/downloads/

Leave a Reply

You must be logged in to post a comment.