sharing memory between GPU and CPU