Adding a utils.h header file to check cudaFuncitons errors and other stuff