RInside Version 0.2.12
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
rinside_mpi_sample4.cpp File Reference
#include <mpi.h>
#include <RInside.h>
#include <string>
#include <vector>
#include <iostream>
Include dependency graph for rinside_mpi_sample4.cpp:

Go to the source code of this file.

Macros

#define WORKTAG   1
 
#define DIETAG   2
 

Functions

static void master (void)
 
static void slave (RInside &R)
 
static int get_next_work_item (int &work, const int size_work, std::vector< int > &data)
 
static void do_work (int work, int &result, RInside &R)
 
static void initalize (RInside &R)
 
int main (int argc, char **argv)
 

Variables

int itr = 0
 

Macro Definition Documentation

#define DIETAG   2

Definition at line 20 of file rinside_mpi_sample4.cpp.

Referenced by master(), and slave().

#define WORKTAG   1

Definition at line 19 of file rinside_mpi_sample4.cpp.

Referenced by master().

Function Documentation

static void do_work ( int  work,
int &  result,
RInside R 
)
static

Definition at line 133 of file rinside_mpi_sample4.cpp.

References RInside::parseEval().

Referenced by slave().

Here is the call graph for this function:

static int get_next_work_item ( int &  work,
const int  size_work,
std::vector< int > &  data 
)
static

Definition at line 120 of file rinside_mpi_sample4.cpp.

References itr.

Referenced by master().

static void initalize ( RInside R)
static

Definition at line 49 of file rinside_mpi_sample4.cpp.

References RInside::parseEvalQ().

Referenced by main().

Here is the call graph for this function:

int main ( int  argc,
char **  argv 
)

Definition at line 31 of file rinside_mpi_sample4.cpp.

References initalize(), master(), and slave().

Here is the call graph for this function:

static void master ( void  )
static

Definition at line 55 of file rinside_mpi_sample4.cpp.

References DIETAG, get_next_work_item(), and WORKTAG.

Referenced by main().

Here is the call graph for this function:

static void slave ( RInside R)
static

Definition at line 99 of file rinside_mpi_sample4.cpp.

References DIETAG, and do_work().

Referenced by main().

Here is the call graph for this function:

Variable Documentation

int itr = 0

Definition at line 29 of file rinside_mpi_sample4.cpp.

Referenced by get_next_work_item().