message: fix indent, fix cuda init mem check
diff: @@ -256,6 +256,13 @@ int AliHLTTPCCAGPUTrackerNVCC::InitGPU(int sliceCount, int forceDeviceID)
  return(1);
  }
  if (fDebugLevel >= 2) HLTInfo("Available CUDA devices:");
  +#ifdef FERMI
  + const int reqVerMaj = 2;
  + const int reqVerMin = 0;
  +#else
  + const int reqVerMaj = 1;
  + const int reqVerMin = 2;
  +#endif
  for (int i = 0;i < count;i++)
  {
  if (fDebugLevel >= 4) printf("Examining device %d\n", i);
  @@ -270,14 +277,7 @@ int AliHLTTPCCAGPUTrackerNVCC::InitGPU(int sliceCount, int forceDeviceID)
  if (fDebugLevel >= 4) printf("Obtained current memory usage for device %d\n", i);
  if (CudaFailedMsg(cudaGetDeviceProperties(&fCudaDeviceProp, i))) continue;
  if (fDebugLevel >= 4) printf("Obtained device properties for device %d\n", i);
  -#ifdef FERMI
  - const int reqVerMaj = 2;
  - const int reqVerMin = 0;
  -#else
  - const int reqVerMaj = 1;
  - const int reqVerMin = 2;
  -#endif
  - int deviceOK = /* sliceCount <= fCudaDeviceProp.multiProcessorCount && */ fCudaDeviceProp.major < 9 && !(fCudaDeviceProp.major < reqVerMaj || (fCudaDeviceProp.major == reqVerMaj && fCudaDeviceProp.minor < reqVerMin)) && free >= fGPUMemSize;
  + int deviceOK = /* sliceCount <= fCudaDeviceProp.multiProcessorCount && */ fCudaDeviceProp.major < 9 && !(fCudaDeviceProp.major < reqVerMaj || (fCudaDeviceProp.major == reqVerMaj && fCudaDeviceProp.minor < reqVerMin)) && free >= fGPUMemSize + 100 * 1024 + 1024;
  if (fDebugLevel >= 2) HLTInfo("%s%2d: %s (Rev: %d.%d - Mem Avail %lld / %lld)%s", deviceOK ? " " : "[", i, fCudaDeviceProp.name, fCudaDeviceProp.major, fCudaDeviceProp.minor, (long long int) free, (long long int) fCudaDeviceProp.totalGlobalMem, deviceOK ? "" : " ]");
  deviceSpeed = (long long int) fCudaDeviceProp.multiProcessorCount * (long long int) fCudaDeviceProp.clockRate * (long long int) fCudaDeviceProp.warpSize * (long long int) free * (long long int) fCudaDeviceProp.major * (long long int) fCudaDeviceProp.major;
  @@ -290,7 +290,7 @@ int AliHLTTPCCAGPUTrackerNVCC::InitGPU(int sliceCount, int forceDeviceID)
  if (bestDevice == -1)
  {
  HLTWarning("No %sCUDA Device available, aborting CUDA Initialisation", count ? "appropriate " : "");
  - HLTInfo("Requiring Revision 1.3, Mem: %lld, Multiprocessors: %d", fGPUMemSize, sliceCount);
  + HLTInfo("Requiring Revision %d.%d, Mem: %lld, Multiprocessors: %d", reqVerMaj, reqVerMin, fGPUMemSize + 100 * 1024 * 1024, sliceCount);
  ReleaseGlobalLock(semLock);
  return(1);
  }
  