WIP: wrapping GPU routines

Change-Id: I3e64f8818692f8859aeba02085f02aea6a90d7da