From 3f6fca42970ca0a7b6e08208a03a4aa48249da41 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 6 Mar 2025 11:57:34 +0100 Subject: [PATCH] Cycles: Enable HIP-RT logging when debug log is on These logs do not appear to be that noisy and do help nailing down issues in HIP-RT. Pull Request: https://projects.blender.org/blender/blender/pulls/135530 --- intern/cycles/device/hiprt/device_impl.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/intern/cycles/device/hiprt/device_impl.cpp b/intern/cycles/device/hiprt/device_impl.cpp index 2a4d3471f41..990d1218eab 100644 --- a/intern/cycles/device/hiprt/device_impl.cpp +++ b/intern/cycles/device/hiprt/device_impl.cpp @@ -100,7 +100,12 @@ HIPRTDevice::HIPRTDevice(const DeviceInfo &info, return; } - hiprtSetLogLevel(hiprtLogLevelNone); + if (VLOG_DEBUG_IS_ON) { + hiprtSetLogLevel(hiprtLogLevelInfo | hiprtLogLevelWarn | hiprtLogLevelError); + } + else { + hiprtSetLogLevel(hiprtLogLevelNone); + } } HIPRTDevice::~HIPRTDevice()