Gromacs  2018.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
manage-threading.h File Reference
#include <cstdio>
#include "gromacs/mdtypes/forcerec.h"
#include "gromacs/topology/idef.h"
+ Include dependency graph for manage-threading.h:

Description

Declares functions for managing threading of listed forces.

Author
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Functions

void setup_bonded_threading (t_forcerec *fr, t_idef *idef)
 Divide the listed interactions over the threads. More...
 
void init_bonded_threading (FILE *fplog, int nenergrp, struct bonded_threading_t **bt_ptr)
 Initialize the bonded threading data structures. More...
 

Function Documentation

void init_bonded_threading ( FILE *  fplog,
int  nenergrp,
struct bonded_threading_t **  bt_ptr 
)

Initialize the bonded threading data structures.

Allocates and initializes a bonded threading data structure. A pointer to this struct is returned as *bb_ptr.

void setup_bonded_threading ( t_forcerec *  fr,
t_idef *  idef 
)

Divide the listed interactions over the threads.

Uses fr->nthreads for the number of threads, and sets up the thread-force buffer reduction. This should be called each time the bonded setup changes; i.e. at start-up without domain decomposition and at DD.