|
QUDA
0.9.0
|
#include <cstdlib>

Go to the source code of this file.
Namespaces | |
| quda | |
| quda::pool | |
Functions | |
| void | quda::printPeakMemUsage () |
| void | quda::assertAllMemFree () |
| long | quda::device_allocated_peak () |
| long | quda::pinned_allocated_peak () |
| long | quda::mapped_allocated_peak () |
| long | quda::host_allocated_peak () |
| void * | quda::device_malloc_ (const char *func, const char *file, int line, size_t size) |
| void * | quda::device_pinned_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::device_pinned_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) |
| constexpr const char * | quda::str_end (const char *str) |
| constexpr bool | quda::str_slant (const char *str) |
| constexpr const char * | quda::r_slant (const char *str) |
| constexpr const char * | quda::file_name (const char *str) |
| void | quda::pool::init () |
| Initialize the memory pool allocator. More... | |
| void * | quda::pool::device_malloc_ (const char *func, const char *file, int line, size_t size) |
| Allocate device-memory. If free pre-existing allocation exists reuse this. More... | |
| void | quda::pool::device_free_ (const char *func, const char *file, int line, void *ptr) |
| Virtual free of pinned-memory allocation. More... | |
| void * | quda::pool::pinned_malloc_ (const char *func, const char *file, int line, size_t size) |
| Allocate pinned-memory. If a free pre-existing allocation exists reuse this. More... | |
| void | quda::pool::pinned_free_ (const char *func, const char *file, int line, void *ptr) |
| Virtual free of pinned-memory allocation. More... | |
| void | quda::pool::flush_device () |
| Free all outstanding device-memory allocations. More... | |
| void | quda::pool::flush_pinned () |
| Free all outstanding pinned-memory allocations. More... | |
| #define device_free | ( | ptr | ) | quda::device_free_(__func__, quda::file_name(__FILE__), __LINE__, ptr) |
Definition at line 57 of file malloc_quda.h.
Referenced by CallUnitarizeLinks(), comm_declare_send_relative_(), comm_declare_strided_send_relative_(), quda::blas::endReduce(), quda::pool::flush_device(), quda::RNG::Release(), and quda::Transfer::~Transfer().
| #define device_malloc | ( | size | ) | quda::device_malloc_(__func__, quda::file_name(__FILE__), __LINE__, size) |
Definition at line 52 of file malloc_quda.h.
Referenced by quda::RNG::AllocateRNG(), CallUnitarizeLinks(), comm_declare_send_relative_(), comm_declare_strided_send_relative_(), quda::blas::initReduce(), and quda::Transfer::Transfer().
| #define device_pinned_free | ( | ptr | ) | quda::device_pinned_free_(__func__, quda::file_name(__FILE__), __LINE__, ptr) |
Definition at line 58 of file malloc_quda.h.
Referenced by quda::LatticeField::allocateGhostBuffer(), and quda::LatticeField::freeGhostBuffer().
| #define device_pinned_malloc | ( | size | ) | quda::device_pinned_malloc_(__func__, quda::file_name(__FILE__), __LINE__, size) |
Definition at line 53 of file malloc_quda.h.
Referenced by quda::LatticeField::allocateGhostBuffer().
| #define host_free | ( | ptr | ) | quda::host_free_(__func__, quda::file_name(__FILE__), __LINE__, ptr) |
Definition at line 59 of file malloc_quda.h.
Referenced by quda::LatticeField::allocateGhostBuffer(), quda::RNG::backup(), comm_declare_send_relative_(), comm_declare_strided_send_relative_(), comm_destroy_topology(), comm_free(), comm_init(), comm_peer2peer_init(), compute_gauge_force_quda_(), quda::cudaColorSpinorField::destroy(), quda::cpuColorSpinorField::destroy(), quda::destroyDslashEvents(), endQuda(), quda::blas::endReduce(), quda::cpuGaugeField::exchangeExtendedGhost(), quda::cpuGaugeField::exchangeGhost(), quda::cpuColorSpinorField::exchangeGhost(), quda::pool::flush_pinned(), quda::LatticeField::freeGhostBuffer(), quda::cpuColorSpinorField::freeGhostBuffer(), gauge_force_test(), quda::cpuGaugeField::injectGhost(), lanczosQuda(), llfat_test(), quda::clover::FloatNOrder< Float, length, N, huge_alloc >::load(), quda::colorspinor::FloatNOrder< Float, Ns, Nc, N, huge_alloc >::load(), quda::gauge::FloatNOrder< Float, length, N, reconLenParam, stag_phase, huge_alloc >::load(), main(), quda::Object::operator delete(), quda::Object::operator delete[](), quda::pool::pinned_malloc_(), quda::RNG::restore(), quda::Deflation::saveVectors(), quda::MG::saveVectors(), quda::cpuCloverField::~cpuCloverField(), quda::cpuGaugeField::~cpuGaugeField(), and quda::Transfer::~Transfer().
| #define mapped_malloc | ( | size | ) | quda::mapped_malloc_(__func__, quda::file_name(__FILE__), __LINE__, size) |
Definition at line 56 of file malloc_quda.h.
Referenced by quda::LatticeField::allocateGhostBuffer(), quda::cudaColorSpinorField::create(), quda::createDslashEvents(), initQudaMemory(), and quda::blas::initReduce().
| #define pinned_malloc | ( | size | ) | quda::pinned_malloc_(__func__, quda::file_name(__FILE__), __LINE__, size) |
Definition at line 55 of file malloc_quda.h.
Referenced by gauge_force_test(), quda::blas::initReduce(), and llfat_test().
| #define pool_device_free | ( | ptr | ) | quda::pool::device_free_(__func__, __FILE__, __LINE__, ptr) |
Definition at line 114 of file malloc_quda.h.
Referenced by quda::cublas::BatchInvertMatrix(), quda::cudaCloverField::copy(), thrust_allocator::deallocate(), quda::cudaColorSpinorField::destroy(), quda::free_gauge_buffer(), quda::free_ghost_buffer(), quda::cudaColorSpinorField::loadSpinorField(), quda::cudaColorSpinorField::saveSpinorField(), quda::cudaCloverField::~cudaCloverField(), and quda::cudaGaugeField::~cudaGaugeField().
| #define pool_device_malloc | ( | size | ) | quda::pool::device_malloc_(__func__, __FILE__, __LINE__, size) |
Definition at line 113 of file malloc_quda.h.
Referenced by thrust_allocator::allocate(), quda::cublas::BatchInvertMatrix(), quda::cudaCloverField::copy(), quda::cudaColorSpinorField::create(), quda::create_gauge_buffer(), quda::create_ghost_buffer(), quda::cudaCloverField::cudaCloverField(), quda::cudaGaugeField::cudaGaugeField(), quda::cudaColorSpinorField::loadSpinorField(), and quda::cudaColorSpinorField::saveSpinorField().
| #define pool_pinned_free | ( | ptr | ) | quda::pool::pinned_free_(__func__, __FILE__, __LINE__, ptr) |
Definition at line 116 of file malloc_quda.h.
Referenced by quda::cublas::BatchInvertMatrix(), quda::cudaCloverField::copy(), quda::cudaGaugeField::copy(), quda::cpuGaugeField::copy(), quda::GaugeField::exchange(), quda::ColorSpinorField::exchange(), quda::cudaColorSpinorField::loadSpinorField(), quda::cudaCloverField::saveCPUField(), quda::cudaGaugeField::saveCPUField(), and quda::cudaColorSpinorField::saveSpinorField().
| #define pool_pinned_malloc | ( | size | ) | quda::pool::pinned_malloc_(__func__, __FILE__, __LINE__, size) |
Definition at line 115 of file malloc_quda.h.
Referenced by quda::cublas::BatchInvertMatrix(), quda::cudaCloverField::copy(), quda::cudaGaugeField::copy(), quda::cpuGaugeField::copy(), quda::GaugeField::exchange(), quda::ColorSpinorField::exchange(), quda::cudaColorSpinorField::loadSpinorField(), quda::cudaCloverField::saveCPUField(), quda::cudaGaugeField::saveCPUField(), and quda::cudaColorSpinorField::saveSpinorField().
| #define safe_malloc | ( | size | ) | quda::safe_malloc_(__func__, quda::file_name(__FILE__), __LINE__, size) |
Definition at line 54 of file malloc_quda.h.
Referenced by quda::cpuColorSpinorField::allocateGhostBuffer(), quda::RNG::backup(), comm_create_topology(), comm_declare_receive_displaced(), comm_declare_send_displaced(), comm_declare_send_relative_(), comm_declare_strided_receive_displaced(), comm_declare_strided_send_displaced(), comm_declare_strided_send_relative_(), comm_init(), comm_peer2peer_init(), compute_gauge_force_quda_(), quda::cpuCloverField::cpuCloverField(), quda::cpuGaugeField::cpuGaugeField(), quda::cpuColorSpinorField::create(), quda::cpuGaugeField::exchangeExtendedGhost(), quda::cpuGaugeField::exchangeGhost(), quda::cpuColorSpinorField::exchangeGhost(), gauge_force_test(), quda::cpuGaugeField::injectGhost(), lanczosQuda(), llfat_test(), main(), quda::Object::operator new(), quda::Object::operator new[](), quda::clover::FloatNOrder< Float, length, N, huge_alloc >::save(), quda::colorspinor::FloatNOrder< Float, Ns, Nc, N, huge_alloc >::save(), quda::gauge::FloatNOrder< Float, length, N, reconLenParam, stag_phase, huge_alloc >::save(), quda::Deflation::saveVectors(), quda::MG::saveVectors(), and quda::Transfer::Transfer().
1.8.14