initial support for moving between jvm and gpu friendly memory structures