vosen / ZLUDA

CUDA on AMD GPUs
Apache License 2.0
8.48k stars 494 forks source link

CUTLASS Error GPU Viewport Blender Denoising ZLUDA #189

Open gioxyer opened 3 months ago

gioxyer commented 3 months ago

When testing ZLUDA on GPU Denoising in real time fail to load Screenshot (793) Screenshot (794) Screenshot (795) Screenshot (796) Screenshot (798)

Read prefs: "C:\Users\giorg\AppData\Roaming\Blender Foundation\Blender\4.1\config\userpref.blend" E0329 16:17:24.973414 21856 denoiser_oidn_gpu.cpp:193] OIDN error: CUTLASS error CUTLASS error

Refer to the Cycles GPU rendering documentation for possible solutions: https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html

E0329 16:17:24.973414 21856 denoiser_gpu.cpp:377] Error running denoiser.

r9e3valiant commented 3 months ago

I think that's not a Zluda problem, bcz GPU denoise is available ONLY on nvidia. Blender developers said that AMD GPU denoise will be available in version 4.2. LTS

gioxyer commented 3 months ago

Thank you for clarification, I close the issue, because it depends from Blender Foundation

vosen commented 3 months ago

I'm reopening because I want to take a look into it at some point (I don't check closed issues)

BaalNetbek commented 3 months ago

I think that's not a Zluda problem, bcz GPU denoise is available ONLY on nvidia. Blender developers said that AMD GPU denoise will be available in version 4.2. LTS

It's available on nVidia (and Intel, and Apple Silicon) but not on Radeons that may suggest that implementation for nVidia is based on CUDA. If so then that is ZLUDA's problem.

gioxyer commented 3 months ago

I just tested with both Blender 4.1 and Blender 4.2, here is what I discover. Versions tested are Blender 4.1 (official release) and Blender 4.2 Alpha (main 56c78a923626), version of today in daily section.

Blender 4.1 Viewport Blender 4 1 Viewport

Blender 4.1 Viewport (CUDA enabled) Blender 4 1 Viewport v2

Blender 4.1 Render (I tested with one frame to see how it behave : CUTLASS error) Blender 4 1 Render

Then I test with Blender 4.2 with 1024 samples to see if something change, here are the results

Blender 4.1 Viewport Blender 4 2 Viewport

Blender 4.1 Render (seems starts correctly, but on cmd first error appear) Blender 4 2 Render v2

Then when render finish, CUTLASS show a black screen Blender 4 2 Render v4

denoiser_gpu.cpp_377 Blender 4 2 Render v5

CUTLASS error (info log) Blender 4 2 Render v3

r9e3valiant commented 3 months ago

In this case, there are three options here. 1) Release Blender 4.2. 2) Zluda update 3) Improved compatibility with Optix. We are waiting for something to happen for sure.

gioxyer commented 3 months ago

Do you think by implementing CUTLASS CUDA C++ library will fix it?

r9e3valiant commented 3 months ago

Do you think by implementing CUTLASS CUDA C++ library will fix it?

I think yes, it will fix it. It’s not a fact, of course, that it will work as we would like.

gioxyer commented 2 months ago

I notice Blender Foundation start adding Denoiser for AMD, at the moment there isn't pull request and it seems not available at the moment, but they add it on release notes compare to before image

Alaska-001 commented 2 months ago

@gioxyer OpenImageDenoising on AMD GPUs was supported in Blender 4.1 with HIP, but was disabled by default unless an environment variable was set. This was done to avoid a AMD GPU driver bug that would ultimately cause Blender to crash for many people while Intel implemented a work around in OIDN.

In 4.2, the need to use the environment variable was removed, and Intel has implemented a work around. So it should just work, and has been working in 4.2 for months now.

The main issue is that OIDN supports a very limited selection number of AMD GPUs.

AMD GPUs with RDNA2 (Navi 21 only) and RDNA3 (Navi 3x) architectures From https://github.com/RenderKit/oidn?tab=readme-ov-file#overview

gioxyer commented 1 month ago

@vosen Now they start implemented with OpenImageDenoiser the possibility to use GPU, it gives some problem with final render, because it doesn't render lights, but now it is rendering.

Without denoiser enabled: image

With denoiser enabled: image

On CMD gives "error guiding passes": E0607 15:48:40.010277 13432 denoiser_gpu.cpp:362] Error running denoiser. E0607 15:48:40.190094 13432 denoiser_gpu.cpp:104] Error preprocessing guiding passes.

image

Render Result with denoiser enabled:

image

Release Notes about Blender 4.2 Beta:

image

gioxyer commented 1 week ago

Blender 4.2 denoiser with ZLUDA: E0717 07:45:50.473544 10552 denoiser_gpu.cpp:121] GPU denoiser creation has failed. E0717 07:48:23.571324 9964 denoiser_oidn_gpu.cpp:209] OIDN error: operation not supported

image

Viewport image

Display error: Microsoft Windows [Versione 10.0.22631.3880] (c) Microsoft Corporation. Tutti i diritti riservati.

C:\Windows\System32>C:\Users\giorg\Downloads\zluda_blender_4.1 "C:\Users\giorg\Downloads\zluda_blender_4.1" non è riconosciuto come comando interno o esterno, un programma eseguibile o un file batch.

C:\Windows\System32>cd C:\Users\giorg\Downloads\zluda_blender_4.1

C:\Users\giorg\Downloads\zluda_blender_4.1>zluda.exe C:\Program Files\Blender Foundation\Blender 4.2\blender.exe E0717 07:45:41.159132 4656 denoiser_oidn_gpu.cpp:209] OIDN error: operation not supported operation not supported

Refer to the Cycles GPU rendering documentation for possible solutions: https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html

E0717 07:45:41.160460 4656 denoiser_gpu.cpp:121] GPU denoiser creation has failed. E0717 07:45:45.344898 19972 denoiser_oidn_gpu.cpp:209] OIDN error: operation not supported operation not supported

Refer to the Cycles GPU rendering documentation for possible solutions: https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html

E0717 07:45:45.344898 19972 denoiser_gpu.cpp:121] GPU denoiser creation has failed. E0717 07:45:50.471769 10552 denoiser_oidn_gpu.cpp:209] OIDN error: operation not supported operation not supported

Refer to the Cycles GPU rendering documentation for possible solutions: https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html

E0717 07:45:50.473544 10552 denoiser_gpu.cpp:121] GPU denoiser creation has failed. E0717 07:48:23.571324 9964 denoiser_oidn_gpu.cpp:209] OIDN error: operation not supported operation not supported

Refer to the Cycles GPU rendering documentation for possible solutions: https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html

E0717 07:48:23.574398 9964 denoiser_gpu.cpp:121] GPU denoiser creation has failed. E0717 07:49:04.087518 19316 denoiser_oidn_gpu.cpp:209] OIDN error: operation not supported operation not supported

Refer to the Cycles GPU rendering documentation for possible solutions: https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html

E0717 07:49:04.089242 19316 denoiser_gpu.cpp:121] GPU denoiser creation has failed.