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/AlgorithmBroker.cs

    r6388 r6394  
    3232using HeuristicLab.Core;
    3333using System.Threading;
     34using System.Xml;
    3435                     
    3536namespace HeuristicLab.MPIAlgorithmRunner {
     
    5354      endpoint.Name = "AlgorithmBrokerEndpoint";
    5455      NetTcpBinding netTCPBinding = new NetTcpBinding(SecurityMode.None);
     56      netTCPBinding.MaxReceivedMessageSize = int.MaxValue;
     57      XmlDictionaryReaderQuotas quotas = new XmlDictionaryReaderQuotas();
     58      quotas.MaxArrayLength = int.MaxValue;
     59      netTCPBinding.ReaderQuotas = quotas;
    5560      endpoint.Binding = netTCPBinding;
    5661      int port = FindFreeTcpPort();
    5762      endpoint.Address = new EndpointAddress("net.tcp://localhost:" + port + "/AlgorithmBroker");
    5863      service.AddServiceEndpoint(endpoint);
     64      ServiceDebugBehavior debug = service.Description.Behaviors.Find<ServiceDebugBehavior>();
     65      debug.IncludeExceptionDetailInFaults = true;
    5966
    6067      return service;
     
    8592    public void TransmitAlgorithm(MPITransportWrapper<IAlgorithm> algorithm) {
    8693      Console.WriteLine("Transmitting Algorithm...");
    87       int clients = MPI.Communicator.world.Group.Size;
     94      int clients = MPI.Communicator.world.Group.Size - 1;
    8895
    8996      for(int i = 0; i < clients; i++) {
Note: See TracChangeset for help on using the changeset viewer.