Hello,
I'm new in MPI c#
I wanted to try a helloworld simple console application, but it seems that arguments are ignored. I debug my app, and then run it using mpiexec -n 2 hello.exe, but does nothing, nor even any exceptions... what is the problem? The app suppose just write a rank and the name of pc.
Thx in advance
Loading
Mi Na MiPosted Jan 11, 2012, 8:52 AM
class MPIHello{
static void Main(string[] args) {
using (new MPI.Environment(ref args)) {
Console.WriteLine("Hello, World! from rank " + Communicator.world.Rank + " (running on " + MPI.Environment.ProcessorName + ")");
}
}
}
I'm using this
Poppa WallacePosted Jan 11, 2012, 8:01 AM
class Hello
{
static void Main()
{
string text = "Rank@Pc@";
text = text.Replace("@", "" + System.Environment.NewLine);
System.Console.WriteLine(text);
Console.ReadLine();
}
}