Initial import, cuda error checking wrappers