#include <scipDiffParamSetMpi.h>
Public Member Functions | |
ScipDiffParamSetMpi () | |
ScipDiffParamSetMpi (SCIP *scip) | |
~ScipDiffParamSetMpi () | |
int | bcast (UG::ParaComm *comm, int root) |
int | send (UG::ParaComm *comm, int destination) |
int | receive (UG::ParaComm *comm, int source) |
Public Member Functions inherited from ScipDiffParamSet | |
ScipDiffParamSet () | |
ScipDiffParamSet (SCIP *scip) | |
virtual | ~ScipDiffParamSet () |
void | setParametersInScip (SCIP *scip) |
int | nDiffParams () |
bool | doesContainRealParam (char *string) |
std::string | toString () |
virtual int | bcast (UG::ParaComm *comm, int root)=0 |
virtual int | send (UG::ParaComm *comm, int destination)=0 |
virtual int | receive (UG::ParaComm *comm, int source)=0 |
void | write (gzstream::ogzstream &out) |
bool | read (UG::ParaComm *comm, gzstream::igzstream &in) |
Private Member Functions | |
MPI_Datatype | createDatatype1 () |
MPI_Datatype | createDatatype2 (bool memAllocNecessary) |
Additional Inherited Members | |
Protected Member Functions inherited from ScipDiffParamSet | |
void | allocateMemoty () |
Protected Attributes inherited from ScipDiffParamSet | |
int | numBoolParams |
size_t | boolParamNamesSize |
char * | boolParamNames |
unsigned int * | boolParamValues |
int | numIntParams |
size_t | intParamNamesSize |
char * | intParamNames |
int * | intParamValues |
int | numLongintParams |
size_t | longintParamNamesSize |
char * | longintParamNames |
long long * | longintParamValues |
int | numRealParams |
size_t | realParamNamesSize |
char * | realParamNames |
double * | realParamValues |
int | numCharParams |
size_t | charParamNamesSize |
char * | charParamNames |
char * | charParamValues |
int | numStringParams |
size_t | stringParamNamesSize |
char * | stringParamNames |
size_t | stringParamValuesSize |
char * | stringParamValues |
ScipDiffParamSet class
Definition at line 48 of file scipDiffParamSetMpi.h.
constructor
Definition at line 58 of file scipDiffParamSetMpi.h.
ScipDiffParamSetMpi | ( | SCIP * | scip | ) |
constructor with scip
Definition at line 64 of file scipDiffParamSetMpi.h.
~ScipDiffParamSetMpi | ( | ) |
destructor
Definition at line 72 of file scipDiffParamSetMpi.h.
|
virtual |
broadcast scipDiffParamSet
send solution data to the rank
Implements ScipDiffParamSet.
Definition at line 292 of file scipDiffParamSetMpi.cpp.
References comm, ScipDiffParamSetMpi::createDatatype1(), ScipDiffParamSetMpi::createDatatype2(), DEF_PARA_COMM, ParaCommCPP11::getRank(), MPI_CALL, ScipDiffParamSet::numBoolParams, and PARA_COMM_CALL.
|
private |
create scipDiffParamSetPreType
Definition at line 49 of file scipDiffParamSetMpi.cpp.
References ScipDiffParamSet::boolParamNamesSize, ScipDiffParamSet::charParamNamesSize, ScipDiffParamSet::intParamNamesSize, ScipDiffParamSet::longintParamNamesSize, MPI_CALL, ScipDiffParamSet::numBoolParams, ScipDiffParamSet::numCharParams, ScipDiffParamSet::numIntParams, ScipDiffParamSet::numLongintParams, ScipDiffParamSet::numRealParams, ScipDiffParamSet::numStringParams, ScipDiffParamSet::realParamNamesSize, ScipDiffParamSet::stringParamNamesSize, and ScipDiffParamSet::stringParamValuesSize.
Referenced by ScipDiffParamSetMpi::bcast(), ScipDiffParamSetMpi::receive(), and ScipDiffParamSetMpi::send().
|
private |
create scipDiffParamSetType
this is dummy
Definition at line 129 of file scipDiffParamSetMpi.cpp.
References ScipDiffParamSet::allocateMemoty(), ScipDiffParamSet::boolParamNames, ScipDiffParamSet::boolParamNamesSize, ScipDiffParamSet::boolParamValues, ScipDiffParamSet::charParamNames, ScipDiffParamSet::charParamNamesSize, ScipDiffParamSet::charParamValues, ScipDiffParamSet::intParamNames, ScipDiffParamSet::intParamNamesSize, ScipDiffParamSet::intParamValues, ScipDiffParamSet::longintParamNames, ScipDiffParamSet::longintParamNamesSize, ScipDiffParamSet::longintParamValues, MPI_CALL, ScipDiffParamSet::numBoolParams, ScipDiffParamSet::numCharParams, ScipDiffParamSet::numIntParams, ScipDiffParamSet::numLongintParams, ScipDiffParamSet::numRealParams, ScipDiffParamSet::realParamNames, ScipDiffParamSet::realParamNamesSize, ScipDiffParamSet::realParamValues, ScipDiffParamSet::stringParamNames, ScipDiffParamSet::stringParamNamesSize, ScipDiffParamSet::stringParamValues, and ScipDiffParamSet::stringParamValuesSize.
Referenced by ScipDiffParamSetMpi::bcast(), ScipDiffParamSetMpi::receive(), and ScipDiffParamSetMpi::send().
|
virtual |
receive scipDiffParamSet from the source rank
receive solution data from the source rank
Implements ScipDiffParamSet.
Definition at line 365 of file scipDiffParamSetMpi.cpp.
References comm, ScipDiffParamSetMpi::createDatatype1(), ScipDiffParamSetMpi::createDatatype2(), DEF_PARA_COMM, MPI_CALL, ScipDiffParamSet::numBoolParams, PARA_COMM_CALL, UG::TagSolverDiffParamSet, and ParaSCIP::TagSolverDiffParamSet1.
|
virtual |
send scipDiffParamSet to the rank
send solution data to the rank
Implements ScipDiffParamSet.
Definition at line 332 of file scipDiffParamSetMpi.cpp.
References comm, ScipDiffParamSetMpi::createDatatype1(), ScipDiffParamSetMpi::createDatatype2(), DEF_PARA_COMM, MPI_CALL, ScipDiffParamSet::numBoolParams, PARA_COMM_CALL, UG::TagSolverDiffParamSet, and ParaSCIP::TagSolverDiffParamSet1.