Moved cuda helper functions to seperate file, .cuh is not right format