15 void *
device_malloc_(
const char *func,
const char *file,
int line,
size_t size);
16 void *
safe_malloc_(
const char *func,
const char *file,
int line,
size_t size);
17 void *
pinned_malloc_(
const char *func,
const char *file,
int line,
size_t size);
18 void *
mapped_malloc_(
const char *func,
const char *file,
int line,
size_t size);
19 void device_free_(
const char *func,
const char *file,
int line,
void *ptr);
20 void host_free_(
const char *func,
const char *file,
int line,
void *ptr);
24 #define device_malloc(size) quda::device_malloc_(__func__, __FILE__, __LINE__, size)
25 #define safe_malloc(size) quda::safe_malloc_(__func__, __FILE__, __LINE__, size)
26 #define pinned_malloc(size) quda::pinned_malloc_(__func__, __FILE__, __LINE__, size)
27 #define mapped_malloc(size) quda::mapped_malloc_(__func__, __FILE__, __LINE__, size)
28 #define device_free(ptr) quda::device_free_(__func__, __FILE__, __LINE__, ptr)
29 #define host_free(ptr) quda::host_free_(__func__, __FILE__, __LINE__, ptr)
31 #endif // _MALLOC_QUDA_H
void * safe_malloc_(const char *func, const char *file, int line, size_t size)
void * device_malloc_(const char *func, const char *file, int line, size_t size)
void device_free_(const char *func, const char *file, int line, void *ptr)
void host_free_(const char *func, const char *file, int line, void *ptr)
void * mapped_malloc_(const char *func, const char *file, int line, size_t size)
void * pinned_malloc_(const char *func, const char *file, int line, size_t size)