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

Nenhum comentário: