Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MPI_Slave.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file protocols/elscripts/MPI_Slave.hh
11 /// @brief the slave role of elscripts
12 /// @author Ken Jung
13 
14 #ifndef INCLUDED_protocols_elscripts_MPI_Slave_hh
15 #define INCLUDED_protocols_elscripts_MPI_Slave_hh
16 #if defined (USEBOOSTMPI) && defined (USELUA)
17 // this is useless without mpi and lua
21 
22 namespace protocols {
23 namespace elscripts {
24 
25 void lregister_MPI_Slave( lua_State * lstate );
26 
27 class MPI_Slave : public Slave {
28  public:
29  // default memory limit is 2GB
30  // default reserved mem size is 100MB as recommended by fpd
31  MPI_Slave( boost::mpi::communicator world, int master, boost::uint64_t mem_limit=2147483648, boost::uint64_t reserved_mem=104857600, boost::uint64_t reserved_mem_multiplier=10 );
32  ~MPI_Slave(){}
33  void go();
34 
35  private:
36  boost::mpi::communicator world_;
37 };
38 
39 } //elscripts
40 } //protocols
41 #endif
42 #endif