 		fprintf(stderr, "cudaDeviceReset failed!");
 		return 1;
 	}
-
+	getchar();
 	return 0;
 }
 

{
	for (int i = 0; i < _size; ++i)
	{
		_data[i] = rand() / (float)RAND_MAX * 100;
	}
}


bool CheckAnswer(const float* _C, const float* _D, unsigned int size)
{
	bool isRight = true;
	for (int i = 0; i < size /*&& isRight == true*/; ++i)
	{
		if (_C[i] != _D[i])
		{
			isRight = false;
			printf("%d : %3.8f != %3.8f \n", i, _C[i], _D[i]);
		}
			
	}

	return isRight;
