15 #include <unordered_map>
29 std::unordered_map<size_t, std::stack<float*>> hostCache;
30 std::unordered_map<size_t, std::stack<float*>> deviceCache;
35 static Cache& getInstance() {
36 static Cache instance;
42 void put(
size_t size,
float* ptr,
DataLocation location);
47 void operator=(
Cache const&) =
delete;
DataLocation
Enumerate to specify where data is located.
Definition: cache.h:24