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 7ffb958444 - Show all commits

View File

@ -534,7 +534,7 @@ void HIPDevice::mem_alloc(device_memory &mem)
void HIPDevice::mem_copy_to(device_memory &mem, size_t size, size_t offset)
{
if (mem.type == MEM_GLOBAL) {
if ((mem.device_size < mem.memory_size()) || (!mem.device_pointer)) {
if ((mem.device_size != mem.memory_size()) || (!mem.device_pointer)) {
global_free(mem);
global_alloc(mem);
}