Skeleton of GPU implementation