diff options
author | Sayak Biswas <sayakAMD> | 2021-11-23 02:53:51 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-11-23 02:55:56 +0300 |
commit | f749506163b7d2409c63c469f00e9bb1cbb2e68d (patch) | |
tree | 36211d00582cc5c997e941f83b3c4c855de30b1a /intern/cycles | |
parent | 481f032f5cbe2cd3c36c9ef516670fd9e06db25f (diff) |
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
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/device/hip/device_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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))); |