Alternative Upload geometry data in parallel to multiple GPUs using the "Multi-Device" #107552

Open
William Leeson wants to merge 137 commits from leesonw/blender-cluster:upload_changed into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 674721194e - Show all commits

View File

@ -57,7 +57,7 @@ class MultiDevice : public Device {
/* Swop the CPU device with the last device to ensure the CPU device is the last */
{
int last = devices.size() - 1;
if (cpu_device_idx != last) {
if ((cpu_device_idx != -1) && (cpu_device_idx != last)) {
std::swap(devices[last], devices[cpu_device_idx]);
}
}