QDP++
QDP::Hints Namespace Reference

Functions

template<typename T>
void moveToFastMemoryHint (T &x, bool copy=false)
 Hint to move a generic object of type T to fast memory.
template<typename T>
void revertFromFastMemoryHint (T &x, bool copy=false)
 Hint to return a generic object of type T from fast memory.

Function Documentation

◆ moveToFastMemoryHint()

template<typename T>
void QDP::Hints::moveToFastMemoryHint ( T & x,
bool copy = false )
inline

Hint to move a generic object of type T to fast memory.

This is a catch all function for objects that do not support memory management hints. It does nothing and had better be inlined or it can be detremental to my health

Parameters
xThe object for which the hint is meant
copyWhether to copy the object's slow memory contents to its new fast memory home. Default is no.

Definition at line 47 of file qdp_allocator.h.

◆ revertFromFastMemoryHint()

template<typename T>
void QDP::Hints::revertFromFastMemoryHint ( T & x,
bool copy = false )
inline

Hint to return a generic object of type T from fast memory.

This is a catch all function for objects that do not support memory management hints. It does nothing and had better be inlined or it can be detremental to my health

Parameters
xThe object for which the hint is meant
copyWhether to copy the object's fast memory contents to back to its slow memory home. Default is no.

Definition at line 63 of file qdp_allocator.h.