got the dist.R example using gputools working after lots of user errors.