forked from elemental/Elemental
-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
Description
We currently specify memory modes for the Memory class with an unsigned int:
Things are messy since the same number means different things on different devices (mode 1 means pinned memory on CPU and CUB memory pool on GPU). This was not a good design (mea culpa). Imagine an idyllic future with something like:
Matrix<float,Device::CPU> A;
A.MemoryMode(); // Returns memory_mode_type::default
A.SetMemoryMode(memory_mode_type::pinned_memory);This would require making simultaneous changes in LBANN.