Mostrando postagens com marcador openmpi. Mostrar todas as postagens
Mostrando postagens com marcador openmpi. Mostrar todas as postagens

terça-feira, 12 de novembro de 2013

Visual Studio 2013 + OpenMPI

 

First I did try with Microsoft HPC 2012 but don’t work, then I try configure the solution with HPC 2008 and work well!

image

image

image

image

 

Sample

#include <stdio.h>
#include <mpi.h>


int main(int argc, char **argv)
{
    int size, rank;
    MPI_Init(&argc, &argv);
    MPI_Comm_size(MPI_COMM_WORLD, &size);
    MPI_Comm_rank(MPI_COMM_WORLD, &rank);
    printf("SIZE = %d RANK = %d\n", size, rank);
    MPI_Finalize();
    return(0);
}   

 

Download: http://easycomtec.com/magno/OpenMpiVisualStudio2013.zip

Installing Open MPI 1.6.5 (Ubuntu 12.04, 13.04, fedora)

Testei e funciona: http://particlephysicsandcode.wordpress.com/2012/11/04/installing-open-mpi-1-6-3-ubuntu-12-04-fedora/