sampling phi on the gpu