rename get_ptr_device() to ptr_device() in mdarray