diff options
author | Patrick Mours <pmours@nvidia.com> | 2021-11-02 14:30:28 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2021-11-02 14:30:28 +0300 |
commit | 31dfdb6379cd42b919ba529eb9cfd3f29eb8de64 (patch) | |
tree | 1061a86a9f1cb1cc0d66b2bb039cd33d09bd7ab6 /intern | |
parent | ac42e58e3104cdb6cc7c0b57869320616bd29c4b (diff) |
Add missing "CUDA_ERROR_UNSUPPORTED_PTX_VERSION" to CUEW
This is required for Cycles to report a meaningful error message when it fails to load a PTX module
created with a newer CUDA toolkit version than the driver supports.
Fix crash when kernel loading failed (T91879)
Ref T91879
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/device/cuda/device_cuda_impl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/device/cuda/device_cuda_impl.cpp b/intern/cycles/device/cuda/device_cuda_impl.cpp index cebe8ce631e..e9d8dc5a7de 100644 --- a/intern/cycles/device/cuda/device_cuda_impl.cpp +++ b/intern/cycles/device/cuda/device_cuda_impl.cpp @@ -583,9 +583,9 @@ bool CUDADevice::load_kernels(const DeviceRequestedFeatures &requested_features) if (result == CUDA_SUCCESS) { reserve_local_memory(requested_features); - } - load_functions(); + load_functions(); + } return (result == CUDA_SUCCESS); } |