diff options
author | Patrick Mours <pmours@nvidia.com> | 2020-07-27 17:11:00 +0300 |
---|---|---|
committer | Patrick Mours <pmours@nvidia.com> | 2020-07-27 17:11:00 +0300 |
commit | d64e171c4ba1648c647e5b160cc80c5dd15d05c6 (patch) | |
tree | 782613056524fb5146fe3d9651824bfe9212d1d9 /intern/cycles/device | |
parent | 79312962ded4e4cab03c452e53f1c621626554e3 (diff) |
Cycles: Enable OptiX on first generation Maxwell GPUs again
Diffstat (limited to 'intern/cycles/device')
-rw-r--r-- | intern/cycles/device/device_optix.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/intern/cycles/device/device_optix.cpp b/intern/cycles/device/device_optix.cpp index ca10cee76ad..1cc45983565 100644 --- a/intern/cycles/device/device_optix.cpp +++ b/intern/cycles/device/device_optix.cpp @@ -1746,11 +1746,10 @@ void device_optix_info(const vector<DeviceInfo> &cuda_devices, vector<DeviceInfo for (DeviceInfo info : cuda_devices) { assert(info.type == DEVICE_CUDA); - int major, minor; + int major; cuDeviceGetAttribute(&major, CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR, info.num); - cuDeviceGetAttribute(&minor, CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR, info.num); - if (major < 5 || (major == 5 && minor < 2)) { - continue; // Only Maxwell 2.0 and up are supported by OptiX + if (major < 5) { + continue; // Only Maxwell and up are supported by OptiX } info.type = DEVICE_OPTIX; |