diff options
author | Thomas Dinges <blender@dingto.org> | 2013-03-17 18:32:50 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-03-17 18:32:50 +0400 |
commit | 50c28740d4a18a77dc71cd31722a0607faad676d (patch) | |
tree | b878a7ec714fae6d12fcc0f7f3f14dae820df9aa | |
parent | 0d0291f6e18a2b8357053bf8166220464beab138 (diff) |
Cycles / CUDA:
* Simplify Computing Capability Check, only check for major.
-rw-r--r-- | intern/cycles/device/device_cuda.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp index 173ac3d57df..e3291cc6d88 100644 --- a/intern/cycles/device/device_cuda.cpp +++ b/intern/cycles/device/device_cuda.cpp @@ -209,7 +209,7 @@ public: int major, minor; cuDeviceComputeCapability(&major, &minor, cuDevId); - if(major <= 1 && minor <= 3) { + if(major < 2) { cuda_error_message(string_printf("CUDA device supported only with compute capability 2.0 or up, found %d.%d.", major, minor)); return false; } @@ -242,7 +242,7 @@ public: #ifdef _WIN32 if(cuHavePrecompiledKernels()) { - if(major <= 1 && minor <= 3) + if(major < 2) cuda_error_message(string_printf("CUDA device requires compute capability 2.0 or up, found %d.%d. Your GPU is not supported.", major, minor)); else cuda_error_message(string_printf("CUDA binary kernel for this graphics card compute capability (%d.%d) not found.", major, minor)); @@ -294,7 +294,8 @@ public: /* check if cuda init succeeded */ if(cuContext == 0) return false; - + + /* check if GPU is supported with current feature set */ if(!support_device(experimental)) return false; |