diff options
author | Patrick Mours <pmours@nvidia.com> | 2020-06-08 18:16:10 +0300 |
---|---|---|
committer | Patrick Mours <pmours@nvidia.com> | 2020-06-08 18:55:49 +0300 |
commit | 9f7d84b656fbb56966620ecc249ce5bc7089a1d1 (patch) | |
tree | d0a022feae43f6db2166cf5214b56cce99b96a60 /intern/cycles/device/device_memory.cpp | |
parent | 0a907657d4d525d320e0c8518f583b7210736214 (diff) |
Cycles: Add support for P2P memory distribution (e.g. via NVLink)
This change modifies the multi-device implementation to support memory distribution
across devices, to reduce the overall memory footprint of large scenes and allow scenes to
fit entirely into combined GPU memory that previously had to fall back to host memory.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D7426
Diffstat (limited to 'intern/cycles/device/device_memory.cpp')
-rw-r--r-- | intern/cycles/device/device_memory.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/device/device_memory.cpp b/intern/cycles/device/device_memory.cpp index 671cd7c29f3..8064d50d31f 100644 --- a/intern/cycles/device/device_memory.cpp +++ b/intern/cycles/device/device_memory.cpp @@ -125,6 +125,11 @@ void device_memory::restore_device() device_pointer = original_device_ptr; } +bool device_memory::is_resident(Device *sub_device) const +{ + return device->is_resident(device_pointer, sub_device); +} + /* Device Sub Ptr */ device_sub_ptr::device_sub_ptr(device_memory &mem, int offset, int size) : device(mem.device) |