add some macro for Device memory