sample_gfunc now builds, in the process of writing handoff to GPU