Gromacs  2016.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
pmalloc_cuda.h File Reference
#include <stdlib.h>
#include "gromacs/utility/basedefinitions.h"
+ Include dependency graph for pmalloc_cuda.h:

Description

Declare functions for host-side memory handling when using CUDA devices.

Author
Szilard Pall pall..nosp@m.szil.nosp@m.ard@g.nosp@m.mail.nosp@m..com

Functions

void pmalloc (void **h_ptr, size_t nbytes)
 Allocates nbytes of page-locked memory.
 
void pmalloc_wc (void **h_ptr, size_t nbytes)
 Allocates nbytes of page-locked memory with write-combining.
 
void pfree (void *h_ptr)
 Frees page locked memory allocated with pmalloc.