QUDA
1.0.0
|
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) |
QudaFieldLocation | quda::get_pointer_location (const void *ptr) |
bool | quda::is_aligned (const void *ptr, size_t alignment) |
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 69 of file malloc_quda.h.
Referenced by CallUnitarizeLinks(), comm_declare_send_relative_(), comm_declare_strided_send_relative_(), quda::blas::endReduce(), quda::pool::flush_device(), qChargeDensityQuda(), and quda::RNG::Release().
#define device_malloc | ( | size | ) | quda::device_malloc_(__func__, quda::file_name(__FILE__), __LINE__, size) |
Definition at line 64 of file malloc_quda.h.
Referenced by quda::RNG::AllocateRNG(), CallUnitarizeLinks(), comm_declare_send_relative_(), comm_declare_strided_send_relative_(), quda::blas::initReduce(), and qChargeDensityQuda().
#define device_pinned_free | ( | ptr | ) | quda::device_pinned_free_(__func__, quda::file_name(__FILE__), __LINE__, ptr) |
Definition at line 70 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 65 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 71 of file malloc_quda.h.
Referenced by quda::LatticeField::allocateGhostBuffer(), quda::RNG::backup(), quda::EigenSolver::blockOrthogonalize(), comm_allreduce(), comm_declare_send_relative_(), comm_declare_strided_send_relative_(), comm_destroy_topology(), comm_free(), comm_init_common(), comm_peer2peer_init(), compute_gauge_force_quda_(), computeHISQLinksCPU(), computeHISQLinksGPU(), quda::TRLM::computeKeptRitz(), quda::EigenSolver::deflate(), quda::EigenSolver::deflateSVD(), quda::cudaColorSpinorField::destroy(), quda::cpuColorSpinorField::destroy(), quda::destroyDslashEvents(), endQuda(), quda::blas::endReduce(), exchange_cpu_sitelink(), exchange_cpu_sitelink_ex(), exchange_cpu_staple(), exchange_llfat_cleanup(), exchange_sitelink_diag(), quda::cpuGaugeField::exchangeExtendedGhost(), quda::cpuGaugeField::exchangeGhost(), quda::cpuColorSpinorField::exchangeGhost(), quda::pool::flush_pinned(), quda::LatticeField::freeGhostBuffer(), quda::cpuColorSpinorField::freeGhostBuffer(), gauge_force_test(), hisq_test(), quda::cpuGaugeField::injectGhost(), llfat_test(), quda::clover::FloatNOrder< Float, length, N, add_rho, huge_alloc >::load(), quda::colorspinor::FloatNOrder< Float, Ns, Nc, N, spin_project, huge_alloc >::load(), quda::gauge::FloatNOrder< Float, length, N, reconLenParam, stag_phase, huge_alloc, ghostExchange_, use_inphase >::load(), quda::EigenSolver::loadVectors(), main(), quda::Object::operator delete(), quda::Object::operator delete[](), quda::pool::pinned_malloc_(), popOutputPrefix(), quda::RNG::restore(), quda::Deflation::saveVectors(), quda::EigenSolver::saveVectors(), unitarize_link_test(), quda::cpuCloverField::~cpuCloverField(), quda::cpuGaugeField::~cpuGaugeField(), quda::cudaGaugeField::~cudaGaugeField(), quda::EigenSolver::~EigenSolver(), quda::Transfer::~Transfer(), and quda::TRLM::~TRLM().
#define mapped_malloc | ( | size | ) | quda::mapped_malloc_(__func__, quda::file_name(__FILE__), __LINE__, size) |
Definition at line 68 of file malloc_quda.h.
Referenced by quda::LatticeField::allocateGhostBuffer(), quda::cudaColorSpinorField::create(), quda::createDslashEvents(), quda::cudaGaugeField::cudaGaugeField(), initQudaMemory(), quda::blas::initReduce(), and unitarize_link_test().
#define pinned_malloc | ( | size | ) | quda::pinned_malloc_(__func__, quda::file_name(__FILE__), __LINE__, size) |
Definition at line 67 of file malloc_quda.h.
Referenced by computeHISQLinksCPU(), computeHISQLinksGPU(), exchange_llfat_init(), gauge_force_test(), hisq_test(), quda::blas::initReduce(), and llfat_test().
#define pool_device_free | ( | ptr | ) | quda::pool::device_free_(__func__, __FILE__, __LINE__, ptr) |
Definition at line 126 of file malloc_quda.h.
Referenced by quda::CalculateY< from_coarse, Float, fineSpin, fineColor, coarseSpin, coarseColor, Arg >::apply(), quda::cublas::BatchInvertMatrix(), contractQuda(), 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(), quda::cudaGaugeField::~cudaGaugeField(), and quda::Transfer::~Transfer().
#define pool_device_malloc | ( | size | ) | quda::pool::device_malloc_(__func__, __FILE__, __LINE__, size) |
Definition at line 125 of file malloc_quda.h.
Referenced by thrust_allocator::allocate(), quda::CalculateY< from_coarse, Float, fineSpin, fineColor, coarseSpin, coarseColor, Arg >::apply(), quda::cublas::BatchInvertMatrix(), contractQuda(), quda::cudaCloverField::copy(), quda::cudaColorSpinorField::create(), quda::create_gauge_buffer(), quda::create_ghost_buffer(), quda::cudaCloverField::cudaCloverField(), quda::cudaGaugeField::cudaGaugeField(), quda::Transfer::initializeLazy(), quda::cudaColorSpinorField::loadSpinorField(), quda::cudaColorSpinorField::saveSpinorField(), and quda::Transfer::Transfer().
#define pool_pinned_free | ( | ptr | ) | quda::pool::pinned_free_(__func__, __FILE__, __LINE__, ptr) |
Definition at line 128 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(), quda::cudaColorSpinorField::saveSpinorField(), and quda::Transfer::~Transfer().
#define pool_pinned_malloc | ( | size | ) | quda::pool::pinned_malloc_(__func__, __FILE__, __LINE__, size) |
Definition at line 127 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(), quda::cudaColorSpinorField::saveSpinorField(), and quda::Transfer::Transfer().
#define safe_malloc | ( | size | ) | quda::safe_malloc_(__func__, quda::file_name(__FILE__), __LINE__, size) |
Definition at line 66 of file malloc_quda.h.
Referenced by quda::cpuColorSpinorField::allocateGhostBuffer(), quda::RNG::backup(), quda::EigenSolver::blockOrthogonalize(), comm_allreduce(), 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_common(), comm_peer2peer_init(), compute_gauge_force_quda_(), computeHISQLinksCPU(), quda::TRLM::computeKeptRitz(), quda::cpuCloverField::cpuCloverField(), quda::cpuGaugeField::cpuGaugeField(), quda::cpuColorSpinorField::create(), quda::EigenSolver::deflate(), quda::EigenSolver::deflateSVD(), quda::EigenSolver::EigenSolver(), exchange_cpu_sitelink(), exchange_cpu_sitelink_ex(), exchange_cpu_staple(), exchange_sitelink_diag(), quda::cpuGaugeField::exchangeExtendedGhost(), quda::cpuGaugeField::exchangeGhost(), quda::cpuColorSpinorField::exchangeGhost(), gauge_force_test(), hisq_test(), quda::cpuGaugeField::injectGhost(), llfat_test(), quda::EigenSolver::loadVectors(), main(), quda::Object::operator new(), quda::Object::operator new[](), pushOutputPrefix(), quda::clover::FloatNOrder< Float, length, N, add_rho, huge_alloc >::save(), quda::colorspinor::FloatNOrder< Float, Ns, Nc, N, spin_project, huge_alloc >::save(), quda::gauge::FloatNOrder< Float, length, N, reconLenParam, stag_phase, huge_alloc, ghostExchange_, use_inphase >::save(), quda::Deflation::saveVectors(), quda::EigenSolver::saveVectors(), quda::Transfer::Transfer(), and quda::TRLM::TRLM().