Documente Academic
Documente Profesional
Documente Cultură
xmpi@echelon:~$ scp /home/xmpi/.ssh/id_dsa.pub xmpi@nexus:/home/xmpi.ssh/authorized_keys xmpi@echelon:~$ scp /home/xmpi/.ssh/id_dsa.pub xmpi@phoenix:/home/xmpi.ssh/authorized_keys Setting up OpenMPI Installing the package apt-get install openmpi-bin openmpi-common libopenmpi-dev Debian should install all needed dependencies , this action should be performed on each node.OpenMPI can be used with languages like C,C++, Fortran and provides some wrappers that can be used to compile code.mpicc is an OpenMPI C wrapper compiler , it can be used to compile C code.OpenMPI will require ssh to connect to each node , ensure that users have the appropriate permissions.First the program must be compiled and replicated to each node under the same path.An Example: report.c This program will stamp a Hello from each process from each node of the cluster xmpi@echelon:~$ mpicc -o report report.c To run this program across the cluster we must also create a file containing all host names on which we want to perform this action xmpi@echelon:~$ cat machine echelon phoenix nexus Running the code mpirun --mca btl ^openib -np 10 -machinefile machine report -np Run this many copies of the program on the given nodes. This option indicates that the specified file is an executable program and not an application context.mca btl ^openib since the cluster dont have OpenFabrics expansion card support Im disabling the openib option to suppress the errors.
Benchmarking: dynamic_10: md5($s.md5($s.$p)) [128/128 SSE2 intrinsics 10x4x3]... DONE Many salts: 1543K c/s real, 1543K c/s virtual Only one salt: 1307K c/s real, 1307K c/s virtual Benchmarking_no_parallelization.txt Enabling supports parallel and distributed processing using OpenMPI cat nodes.txt echelon slots=2 phoenix slots=2 mpirun -np 12 -hostfile nodes.txt ./john --test Benchmarking: dynamic_10: md5($s.md5($s.$p)) [128/128 SSE2 intrinsics 10x4x3]... DONE Many salts: 2016K c/s real, 12732K c/s virtual Only one salt: 780720 c/s real, 4592K c/s virtual Benchmarking_distributed_processing.txt References OpenMPI Project Homepage John the Ripper distributed processing www.modnet.org