QUDA  v0.7.0
A library for QCD on GPUs
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Macros | Functions
malloc_quda.h File Reference
#include <cstdlib>

Go to the source code of this file.

Namespaces

 quda
 

Macros

#define device_malloc(size)   quda::device_malloc_(__func__, __FILE__, __LINE__, size)
 
#define safe_malloc(size)   quda::safe_malloc_(__func__, __FILE__, __LINE__, size)
 
#define pinned_malloc(size)   quda::pinned_malloc_(__func__, __FILE__, __LINE__, size)
 
#define mapped_malloc(size)   quda::mapped_malloc_(__func__, __FILE__, __LINE__, size)
 
#define device_free(ptr)   quda::device_free_(__func__, __FILE__, __LINE__, ptr)
 
#define host_free(ptr)   quda::host_free_(__func__, __FILE__, __LINE__, ptr)
 

Functions

void quda::printPeakMemUsage ()
 
void quda::assertAllMemFree ()
 
void * quda::device_malloc_ (const char *func, const char *file, int line, size_t size)
 
void * quda::safe_malloc_ (const char *func, const char *file, int line, size_t size)
 
void * quda::pinned_malloc_ (const char *func, const char *file, int line, size_t size)
 
void * quda::mapped_malloc_ (const char *func, const char *file, int line, size_t size)
 
void quda::device_free_ (const char *func, const char *file, int line, void *ptr)
 
void quda::host_free_ (const char *func, const char *file, int line, void *ptr)
 

Macro Definition Documentation

#define device_free (   ptr)    quda::device_free_(__func__, __FILE__, __LINE__, ptr)

Definition at line 28 of file malloc_quda.h.

#define device_malloc (   size)    quda::device_malloc_(__func__, __FILE__, __LINE__, size)

Definition at line 24 of file malloc_quda.h.

#define host_free (   ptr)    quda::host_free_(__func__, __FILE__, __LINE__, ptr)

Definition at line 29 of file malloc_quda.h.

#define mapped_malloc (   size)    quda::mapped_malloc_(__func__, __FILE__, __LINE__, size)

Definition at line 27 of file malloc_quda.h.

#define pinned_malloc (   size)    quda::pinned_malloc_(__func__, __FILE__, __LINE__, size)

Definition at line 26 of file malloc_quda.h.

#define safe_malloc (   size)    quda::safe_malloc_(__func__, __FILE__, __LINE__, size)

Definition at line 25 of file malloc_quda.h.