ifdef NCS_CUDA in Memory.hpp