Non functional cuda code

This is the initial cuda version.  It is incorrect.