Removed unused cuda helper code