| version 1.101 | version 1.102 |
|---|
| |
| 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 |
| |
| } | } |
| | |
| 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; |
| |
| 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"); |
| } | } |