 	int deviceCount;
 	cudaGetDeviceCount(&deviceCount);
 	return deviceCount;
-}+}

void gpuSelector(unsigned char* data, uint64_t len, uint32_t pX, uint32_t pY, int fGPU)
{
	// Get Device. ATM this check if to prevent Driver RST
	int deviceCount;
	cudaGetDeviceCount(&deviceCount);
	if (fGPU <= deviceCount)
	{
		cudaSetDevice(fGPU);
		std::cout << "Thread is utilizing GPU " << fGPU << std::endl;

	{
		std::cout << "Threading Failure!!!" << std::endl;
		return; 
	}*/
        cudaSetDevice(fGPU);
	/*if (!_GPUSelected)
	{
		if (deviceCount == 0)
