added error checking code for benchmarks.cu.

Its starting to look sick with all these checks, but necessary to avoid crashes