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

	cudaMemcpy(deviceData, data, dataLength, cudaMemcpyHostToDevice);


	gpuSelector(deviceData, dataLength, pX, pY, GPU);




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;
