Attila Áfra aafra
  • Joined on 2019-02-12
Attila Áfra commented on issue blender/blender#119444 2024-03-14 15:27:47 +01:00
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!" with nVidia GPU and AMD iGPU

I'm confused now. This crash with the integrated AMD GPUs is specific to OIDN, right? So because of this you don't even want to load the HIP runtime at all for older driver versions, even though…

Attila Áfra commented on issue blender/blender#119444 2024-03-14 15:11:02 +01:00
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!" with nVidia GPU and AMD iGPU

@brecht Why not the check the driver or runtime version with hipDriverGetVersion or hipRuntimeGetVersion? These are available on both Windows and Linux.

Attila Áfra commented on issue blender/blender#119444 2024-03-14 14:29:57 +01:00
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!" with nVidia GPU and AMD iGPU

@brecht The main drawback of your solution is that if there is an AMD integrated GPU in the system, OIDN HIP support will be disabled for discrete AMD GPUs too, even if the driver version is up to…

Attila Áfra commented on issue blender/blender#119444 2024-03-14 13:29:11 +01:00
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!" with nVidia GPU and AMD iGPU

@brecht We cannot miss any architecture because the list of possible HIP targets is well-known but I get your point. But this is the best I can do on OIDN side at the moment, especially at such…

Attila Áfra commented on issue blender/blender#119444 2024-03-14 12:51:03 +01:00
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!" with nVidia GPU and AMD iGPU

@aafra, @salipour, I'll check if I can find some way to fix this tomorrow. I guess OIDN is initializing HIP when we query info about NVIDIA devices.

If we can't fix it this week, I will…

Attila Áfra commented on issue blender/blender#119035 2024-03-13 15:15:29 +01:00
Out of GPU memory when rendering animations with Cycles and GPU denoising in Blender 4.1

@brecht Well, I could send you a patch, which would basically partially upgrade 2.2.1 to 2.2.2 but I'm not sure whether it would be really safer than just upgrading to 2.2.2 directly. I could…

Attila Áfra commented on issue blender/blender#119035 2024-03-13 14:30:53 +01:00
Out of GPU memory when rendering animations with Cycles and GPU denoising in Blender 4.1

Using an internal OIDN 2.2.2 build and the latest Blender 4.1 build I don't see any leaks with CUDA anymore. The GPU memory usage doesn't increase at all even after more than 2000 frames.

@brech…

Attila Áfra commented on issue blender/blender#118709 2024-03-12 01:46:10 +01:00
Blender crash when change to Cycles and select GPU Compute

Thanks! So it seems that the new driver fixed the issue, and the workaround in Blender is needed only for older drivers.

Attila Áfra commented on issue blender/blender#118709 2024-03-12 01:28:36 +01:00
Blender crash when change to Cycles and select GPU Compute

Thanks. Could you please try the previous Blender binaries which crashed with this new driver? It would be useful to know whether the driver fixed the issue, which Blender needs to work around in…

Attila Áfra commented on issue blender/blender#118709 2024-03-12 01:16:44 +01:00
Blender crash when change to Cycles and select GPU Compute

@MarcFreeDev Did you use the same version of Adrenalin when Blender crashed too?

Attila Áfra commented on issue blender/blender#119035 2024-03-11 22:26:48 +01:00
Out of GPU memory when rendering animations with Cycles and GPU denoising in Blender 4.1

@brecht I managed to fix the leak. I'm now preparing OIDN 2.2.2 with the fix, which should be out in one or two days. I'll double check with Blender as well to make sure that there are no…

Attila Áfra commented on issue blender/blender#119035 2024-03-11 19:46:32 +01:00
Out of GPU memory when rendering animations with Cycles and GPU denoising in Blender 4.1

I've identified a leak for CUDA, SYCL and HIP devices, but not for CPU and Metal. I'm working on a patch release to fix this in time for Blender 4.1.

But so far I have no idea what's happening…

Attila Áfra commented on issue blender/blender#119035 2024-03-11 16:05:11 +01:00
Out of GPU memory when rendering animations with Cycles and GPU denoising in Blender 4.1

@Alaska Did you see the Metal memory leak with latest OIDN 2.2.1? The Xcode leaks tool doesn't detect any leaks so I'm very surprised about this.

I'm still investigating the source of the…

Attila Áfra commented on issue blender/blender#118709 2024-03-11 15:15:58 +01:00
Blender crash when change to Cycles and select GPU Compute

@MarcFreeDev Did you try to update the AMD iGPU driver? It would be important to know whether this issue in HIP is still present.

Attila Áfra commented on pull request blender/blender#119315 2024-03-11 15:08:53 +01:00
Fix #118709: Crash in OIDN GPU detection for unsupported HIP device

It is helpful to some extent because without this it would crash on even more machines. I’ll try to find some other workaround but this really should be fixed in HIP instead.

Attila Áfra commented on pull request blender/blender#119315 2024-03-11 14:46:28 +01:00
Fix #118709: Crash in OIDN GPU detection for unsupported HIP device

@brecht I'm aware of this issue, and I hoped that this got fixed (I also let Brian know about this a while ago) but unfortunately it seems it didn't. There's not much we can do about this on the…

Attila Áfra commented on issue blender/blender#119035 2024-03-10 22:29:41 +01:00
Out of GPU memory when rendering animations with Cycles and GPU denoising in Blender 4.1

@brecht OIDN is holding the context because it implements the CUDA runtime. So the context will be destroyed only when the application exits.

I could reproduce this second memory leak with OIDN…

Attila Áfra commented on issue blender/blender#119035 2024-03-10 14:09:36 +01:00
Out of GPU memory when rendering animations with Cycles and GPU denoising in Blender 4.1

@Alaska With the module leak fix do you actually run out of memory at some point? So far I couldn't reproduce this because the memory usage always 'resets' after a while, so there's always plenty…

Attila Áfra commented on issue blender/blender#119035 2024-03-10 14:05:52 +01:00
Out of GPU memory when rendering animations with Cycles and GPU denoising in Blender 4.1

I also noticed the behavior you described but I'm not entirely sure that it's indeed a real leak. In my testing I'm also seeing a small progressive increase in memory usage reported by nvidia-smi

Attila Áfra commented on issue blender/blender#119035 2024-03-10 13:34:37 +01:00
Out of GPU memory when rendering animations with Cycles and GPU denoising in Blender 4.1

Thanks, this is indeed important. So it seems there was not just one but two memory leaks with HIP. The module leak which has been now fixed and an unknown one which is triggered only when Open…