GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
generateMPI.cc File Reference

Contains functions to generate code for running the simulation with MPI. Part of the code generation section. More...

#include "generateMPI.h"
#include <fstream>
#include "codeStream.h"
#include "modelSpec.h"

Functions

void genMPI (const NNmodel &model, const string &path, int localHostID)
 A function that generates predominantly MPI infrastructure code. More...
 

Detailed Description

Contains functions to generate code for running the simulation with MPI. Part of the code generation section.

Function Documentation

◆ genMPI()

void genMPI ( const NNmodel model,
const string &  path,
int  localHostID 
)

A function that generates predominantly MPI infrastructure code.

In this function MPI infrastructure code are generated, including: MPI send and receive functions.

Parameters
modelModel description
pathPath for code generation
localHostIDID of local host