From f749506163b7d2409c63c469f00e9bb1cbb2e68d Mon Sep 17 00:00:00 2001 From: Sayak Biswas Date: Tue, 23 Nov 2021 00:53:51 +0100 Subject: Fix T93244: Cycles HIP not working with multi GPU rendering Use the correct device function (hipDeviceGet) for multi GPU setups, instead of hipGetDevice which just returns the default device. Differential Revision: https://developer.blender.org/D13323 --- intern/cycles/device/hip/device_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/cycles/device') diff --git a/intern/cycles/device/hip/device_impl.cpp b/intern/cycles/device/hip/device_impl.cpp index 5b0e2951c39..42dd5382ae5 100644 --- a/intern/cycles/device/hip/device_impl.cpp +++ b/intern/cycles/device/hip/device_impl.cpp @@ -99,7 +99,7 @@ HIPDevice::HIPDevice(const DeviceInfo &info, Stats &stats, Profiler &profiler) } /* Setup device and context. */ - result = hipGetDevice(&hipDevice, hipDevId); + result = hipDeviceGet(&hipDevice, hipDevId); if (result != hipSuccess) { set_error(string_printf("Failed to get HIP device handle from ordinal (%s)", hipewErrorString(result))); -- cgit v1.2.3