Changes:
** Using size_t instead of unsigned int/uint types.
** Using uint64_t instead of unsigned long long int.
** Added __cudaCheckMemory() to check GPU RAM Usage.