Functions
wspace.c File Reference

Functions dealing with memory allocation and workspace management. More...

#include "metislib.h"
Include dependency graph for wspace.c:

Go to the source code of this file.

Functions

void AllocateRefinementWorkSpace (ctrl_t *ctrl, idx_t nbrpoolsize)
 
void AllocateWorkSpace (ctrl_t *ctrl, graph_t *graph)
 
idx_t cnbrpoolGetNext (ctrl_t *ctrl, idx_t nnbrs)
 
void cnbrpoolReset (ctrl_t *ctrl)
 
void FreeWorkSpace (ctrl_t *ctrl)
 
ikv_t * ikvwspacemalloc (ctrl_t *ctrl, idx_t n)
 
idx_tiwspacemalloc (ctrl_t *ctrl, idx_t n)
 
real_trwspacemalloc (ctrl_t *ctrl, idx_t n)
 
idx_t vnbrpoolGetNext (ctrl_t *ctrl, idx_t nnbrs)
 
void vnbrpoolReset (ctrl_t *ctrl)
 
void * wspacemalloc (ctrl_t *ctrl, size_t nbytes)
 
void wspacepop (ctrl_t *ctrl)
 
void wspacepush (ctrl_t *ctrl)
 

Detailed Description

Functions dealing with memory allocation and workspace management.

Date
Started 2/24/96
Author
George
Copyright 1997-2009, Regents of the University of Minnesota
Version
Id
wspace.c 10492 2011-07-06 09:28:42Z karypis

Definition in file wspace.c.

Function Documentation

◆ AllocateRefinementWorkSpace()

void AllocateRefinementWorkSpace ( ctrl_t ctrl,
idx_t  nbrpoolsize 
)

This function allocates refinement-specific memory for the workspace

Definition at line 43 of file wspace.c.

◆ AllocateWorkSpace()

void AllocateWorkSpace ( ctrl_t ctrl,
graph_t graph 
)

This function allocates memory for the workspace

Definition at line 17 of file wspace.c.

◆ cnbrpoolGetNext()

idx_t cnbrpoolGetNext ( ctrl_t ctrl,
idx_t  nnbrs 
)

This function gets the next free index from cnbrpool

Definition at line 172 of file wspace.c.

◆ cnbrpoolReset()

void cnbrpoolReset ( ctrl_t ctrl)

This function resets the cnbrpool

Definition at line 163 of file wspace.c.

◆ FreeWorkSpace()

void FreeWorkSpace ( ctrl_t ctrl)

This function frees the workspace

Definition at line 80 of file wspace.c.

◆ ikvwspacemalloc()

ikv_t* ikvwspacemalloc ( ctrl_t ctrl,
idx_t  n 
)

This function allocate space from the core

Definition at line 154 of file wspace.c.

◆ iwspacemalloc()

idx_t* iwspacemalloc ( ctrl_t ctrl,
idx_t  n 
)

This function allocate space from the core

Definition at line 136 of file wspace.c.

◆ rwspacemalloc()

real_t* rwspacemalloc ( ctrl_t ctrl,
idx_t  n 
)

This function allocate space from the core

Definition at line 145 of file wspace.c.

◆ vnbrpoolGetNext()

idx_t vnbrpoolGetNext ( ctrl_t ctrl,
idx_t  nnbrs 
)

This function gets the next free index from vnbrpool

Definition at line 200 of file wspace.c.

◆ vnbrpoolReset()

void vnbrpoolReset ( ctrl_t ctrl)

This function resets the vnbrpool

Definition at line 191 of file wspace.c.

◆ wspacemalloc()

void* wspacemalloc ( ctrl_t ctrl,
size_t  nbytes 
)

This function allocate space from the workspace/heap

Definition at line 108 of file wspace.c.

◆ wspacepop()

void wspacepop ( ctrl_t ctrl)

This function frees all mops since the last push

Definition at line 127 of file wspace.c.

◆ wspacepush()

void wspacepush ( ctrl_t ctrl)

This function sets a marker in the stack of malloc ops to be used subsequently for freeing purposes

Definition at line 118 of file wspace.c.



gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:40:57