Difference for src/ComputeNonbondedCUDA.C from version 1.101 to 1.102

version 1.101version 1.102
Line 259
Line 259
       cudaGetDeviceProperties(&deviceProp, dev);       cudaGetDeviceProperties(&deviceProp, dev);
       cuda_errcheck("in cudaGetDeviceProperties");       cuda_errcheck("in cudaGetDeviceProperties");
       if ( deviceProp.computeMode != cudaComputeModeProhibited       if ( deviceProp.computeMode != cudaComputeModeProhibited
            && (deviceProp.major > 1 || deviceProp.minor >= 1)            && (deviceProp.major >= 3)
            && deviceProp.canMapHostMemory            && deviceProp.canMapHostMemory
            && ( (deviceProp.multiProcessorCount > 2) ||            && ( (deviceProp.multiProcessorCount > 2) ||
                 ((ndevices==0)&&(CkNumNodes()==1)) ) // exclude weak cards                 ((ndevices==0)&&(CkNumNodes()==1)) ) // exclude weak cards
Line 276
Line 276
   }   }
  
   if ( ! ndevices ) {   if ( ! ndevices ) {
     cuda_die("All CUDA devices are in prohibited mode, of compute capability 1.0, unable to map host memory, too small, or otherwise unusable.");     cuda_die("all devices are in prohibited mode, of compute capability < 3.0, unable to map host memory, too small, or otherwise unusable");
   }   }
  
   shared_gpu = 0;   shared_gpu = 0;
Line 386
Line 386
     cuda_errcheck("in cudaGetDeviceProperties");     cuda_errcheck("in cudaGetDeviceProperties");
     if ( deviceProp.computeMode == cudaComputeModeProhibited )     if ( deviceProp.computeMode == cudaComputeModeProhibited )
       cuda_die("device in prohibited mode");       cuda_die("device in prohibited mode");
     if ( deviceProp.major < 2 && deviceProp.minor < 1 )     if ( deviceProp.major < 3 )
       cuda_die("device not of compute capability 1.1 or higher");       cuda_die("device not of compute capability 3.0 or higher");
     if ( ! deviceProp.canMapHostMemory )     if ( ! deviceProp.canMapHostMemory )
       cuda_die("device cannot map host memory");       cuda_die("device cannot map host memory");
   }   }


Legend:
Removed in v.1.101 
changed lines
 Added in v.1.102



Made by using version 1.53 of cvs2html