Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/08/11 14:26:36 (13 years ago)
Author:
svonolfe
Message:

Added first working version of the MPI engine (#1542)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/MPI/HeuristicLab.MPIAlgorithmRunner/3.3/Program.cs

    r6388 r6394  
    4141
    4242      // Discover the job's context from the environment
    43       String headNodeName = System.Environment.GetEnvironmentVariable("CCP_CLUSTER_NAME");
     43      String headNodeName = System.Environment.GetEnvironmentVariable("CCP_SCHEDULER");
    4444      int jobId = System.Convert.ToInt32(System.Environment.GetEnvironmentVariable("CCP_JOBID"));
     45
     46      Console.WriteLine(jobId + "@" + headNodeName);
    4547
    4648      // Connect to the head node and get the job
     
    6365    static void Main(string[] args) {
    6466      using (new MPI.Environment(ref args)) {
    65         int clients = MPI.Communicator.world.Group.Size;
     67        int clients = MPI.Communicator.world.Group.Size - 1;
     68        Console.WriteLine("Clients: " + clients);
     69
    6670        int updateInterval = 5000;
    6771
Note: See TracChangeset for help on using the changeset viewer.