using shmem_offset function, removed translate_ptr_to_sheap_disp because it's unnecessary