Pages

Subscribe:

Ads 468x60px

Labels

miércoles, 9 de mayo de 2012

Reporte de Actividades

Esta semana se trabajo en tener la interfaz para el portal del Cluster se integro una web basada en SSH :

http://en.wikipedia.org/wiki/Web-based_SSH
http://liftoffsoftware.com/Products/GateOne
http://code.google.com/p/shellinabox/



También se hicieron pruebas sobre PVM

Se instalo y se corrieron ejemplos 
(Esta en proceso un tutorial para la instalacion de PVM)
#include <stdio.h>
#include <pvm3.h>
int main()
{
int mytid;
mytid = pvm_mytid();
printf("My TID is %d\n", mytid);
pvm_exit();
return 0;
}
view raw gistfile1.c hosted with ❤ by GitHub
Para compilar
$ gcc hello.c -o hello -lpvm3
view raw gistfile1.sh hosted with ❤ by GitHub
Codigo Esclavo
#include <stdio.h>
#include <stdlib.h>
#include <pvm3.h>
int main()
{
int myTID;
int x = 12;
int children[10];
int res;
myTID = pvm_mytid();
printf("Master: TID is %d\n", myTID);
res = pvm_spawn("slave", NULL, PvmTaskDefault, "", 1, children);
if (res<1) {
printf("Master: pvm_spawn error\n");
pvm_exit();
exit(1);
}
pvm_initsend(PvmDataDefault);
pvm_pkint(&x, 1, 1);
pvm_send(children[0], 1);
pvm_recv(-1, -1);
pvm_upkint(&x, 1, 1);
printf("Master has received x=%d\n", x);
pvm_exit();
return 0;
}
view raw gistfile1.c hosted with ❤ by GitHub
Compilar
$ gcc -o master master.c -lpvm3
$ gcc -o slave slave.c -lpvm3
view raw gistfile1.sh hosted with ❤ by GitHub


Nominaciones:

Juan Carlos http://jcecdps.blogspot.mx/2012/05/dps-class-benchmarks.html
Osvaldo : http://4imedio.blogspot.mx/2012/05/reporte-semana-14-paralelos.html

1 comentarios:

Publicar un comentario