hai all
i am try alchemi.paralel
i want to practice mpi in alchemi using visual C#.
i have problem with user function in mpi.bcast
about using object ....
with function mpi.bcast(object buf,int, mpi_comm comm);
but i am confuse with use object..
this is full source code, i have been try:
===================
using System;
using Alchemi.Parallel;
using System.Collections.Generic;
using System.Text;
using Environemnt =Alchemi.Parallel.Environment;
namespace bcast
{
class Program
{
[STAThread]
static void Main(string[] args)
{
int rank;
int i;
int nprocs;
MPI mpi=Alchemi.Parallel.Environment.GetInstance().GetMPI;
mpi.Init();
mpi.Comm_Size(out nprocs);
mpi.Comm_Rank(out rank);
MPI_Comm comm= new MPI_Comm("WOrld");
if (rank == 0)
{
i = 27;
}
object data;
mpi.Bcast(data, 0, comm);
mpi.Barrier(comm);
mpi.Finalise();
}
}
}
======================
thanks
andrew
___________________________________________________________________________
Dapatkan nama yang Anda sukai!
Sekarang Anda dapat memiliki email di @ymail.com dan @rocketmail.com.
http://mail.promotions.yahoo.com/newdomains/id/-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
alchemi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alchemi-users