vosen / ZLUDA

CUDA on non-NVIDIA GPUs
https://vosen.github.io/ZLUDA/
Apache License 2.0
9.73k stars 636 forks source link

ZLUDA CUStream error with heavy Blender projects [CU_STREAM_NON_BLOCKING] #223

Closed gioxyer closed 6 months ago

gioxyer commented 6 months ago

With heavy project cuda failed to load viewport render

CMD display error: Out of memory in cuStreamCreate(&cudastream, CU_STREAM_NON_BLOCKING) (C:\Users\blender\git\blender-v410\blender.git\intern\cycles\device\cuda\queue.cpp:21)

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

Out of memory in cuStreamCreate(&cudastream, CU_STREAM_NON_BLOCKING) (C:\Users\blender\git\blender-v410\blender.git\intern\cycles\device\cuda\queue.cpp:21) Out of memory in cuStreamCreate(&cudastream, CU_STREAM_NON_BLOCKING) (C:\Users\blender\git\blender-v410\blender.git\intern\cycles\device\cuda\queue.cpp:21) Out of memory in cuStreamCreate(&cudastream, CU_STREAM_NON_BLOCKING) (C:\Users\blender\git\blender-v410\blender.git\intern\cycles\device\cuda\queue.cpp:21) Out of memory in cuStreamCreate(&cudastream, CU_STREAM_NON_BLOCKING) (C:\Users\blender\git\blender-v410\blender.git\intern\cycles\device\cuda\queue.cpp:21) Out of memory in cuStreamCreate(&cudastream, CU_STREAM_NON_BLOCKING) (C:\Users\blender\git\blender-v410\blender.git\intern\cycles\device\cuda\queue.cpp:21) Out of memory in cuStreamCreate(&cudastream, CU_STREAM_NON_BLOCKING) (C:\Users\blender\git\blender-v410\blender.git\intern\cycles\device\cuda\queue.cpp:21) Out of memory in cuStreamCreate(&cudastream, CU_STREAM_NON_BLOCKING) (C:\Users\blender\git\blender-v410\blender.git\intern\cycles\device\cuda\queue.cpp:21) Out of memory in cuStreamCreate(&cudastream, CU_STREAM_NON_BLOCKING) (C:\Users\blender\git\blender-v410\blender.git\intern\cycles\device\cuda\queue.cpp:21) Out of memory in cuStreamCreate(&cudastream, CU_STREAM_NON_BLOCKING) (C:\Users\blender\git\blender-v410\blender.git\intern\cycles\device\cuda\queue.cpp:21)

Issue with ZLUDA memory Out of memory cuda v2

Viewport doesn't loading render Out of memory cuda v1

vosen commented 6 months ago

What happens if you render from command line?

blender.exe -d --debug-cycles -noaudio --enable-autoexec -b <BLEND_FILE> -x 1 -F PNG -f 1 -- --cycles-device CUDA

Can you send me the scene?

gioxyer commented 6 months ago

This should be after blender.exe? -d --debug-cycles -noaudio --enable-autoexec -b -x 1 -F PNG -f 1 -- --cycles-device CUDA

https://we.tl/t-N1u2opZDCx

gioxyer commented 6 months ago

blender_debug_output.txt blender_system_info.txt

vosen commented 6 months ago

I've tried the scene you've attached. I have 64 GB RAM and I'm consistently getting blender crashes with out-of-memory with all GPU backends: CUDA-ZLUDA, CUDA and HIP. Maybe you are running of memory too (errors you are getting also suggest this)?

gioxyer commented 6 months ago

Yes, I tried a few hours ago, I have same problem, after 3 crashes, the fourth time it display "Out of Memory" image

vosen commented 6 months ago

I'm closing it, since it does not seem to be related to ZLUDA, but rather Blender running out of RAM.