diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-10-16 22:54:27 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-10-16 22:54:27 +0400 |
commit | 5fd67a3ba5ad10a932a0a1b4cbd3fe37691fbae1 (patch) | |
tree | 8dd8bde6ac10df92c30cf4a66d168eedef396e82 /intern/cycles/device/device_cuda.cpp | |
parent | 33691eb0e7d0c6b7aa47f3b8640b1a332004de6d (diff) |
Cycles: enable multi closure sampling and transparent shadows only on CPU and
CUDA cards with shader model >= 2 for now (GTX 4xx, 5xx, ..). The CUDA compiler
can't handle the increased kernel size currently.
Diffstat (limited to 'intern/cycles/device/device_cuda.cpp')
-rw-r--r-- | intern/cycles/device/device_cuda.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp index 3773dda7631..1438dd67ca5 100644 --- a/intern/cycles/device/device_cuda.cpp +++ b/intern/cycles/device/device_cuda.cpp @@ -181,6 +181,14 @@ public: cuda_assert(cuCtxDetach(cuContext)) } + bool support_full_kernel() + { + int major, minor; + cuDeviceComputeCapability(&major, &minor, cuDevId); + + return (major >= 2); + } + string description() { /* print device information */ |