diff options
author | Patrick Mours <pmours@nvidia.com> | 2020-06-12 17:42:49 +0300 |
---|---|---|
committer | Patrick Mours <pmours@nvidia.com> | 2020-06-12 19:24:15 +0300 |
commit | b586f801fc921f9f420260fb3ff4f26cb6773157 (patch) | |
tree | 8370736aec591a2424c09aa35863a4ba3f92dae4 /intern/cycles/device/cuda/device_cuda.h | |
parent | 5dca72dfc924ff931ae46b35a6342beec87f9fc4 (diff) |
Cycles: Improve CUDA and OptiX error reporting in the viewport
This patch makes the infamous "Cancel" error in the viewport a thing of the past. Instead it
now shows a more useful error message and streamlines the error handling process in CUDA.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D8008
Diffstat (limited to 'intern/cycles/device/cuda/device_cuda.h')
-rw-r--r-- | intern/cycles/device/cuda/device_cuda.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/intern/cycles/device/cuda/device_cuda.h b/intern/cycles/device/cuda/device_cuda.h index 9f31ed12cf4..1aa2fdd0967 100644 --- a/intern/cycles/device/cuda/device_cuda.h +++ b/intern/cycles/device/cuda/device_cuda.h @@ -100,11 +100,7 @@ class CUDADevice : public Device { virtual BVHLayoutMask get_bvh_layout_mask() const; - void cuda_error_documentation(); - - bool cuda_error_(CUresult result, const string &stmt); - - void cuda_error_message(const string &message); + void set_error(const string &error) override; CUDADevice(DeviceInfo &info, Stats &stats, Profiler &profiler, bool background_); |