WolframRhodium / VapourSynth-BilateralGPU

Bilateral filter in CUDA and SYCL for VapourSynth.
MIT License
10 stars 3 forks source link

'cuStreamSynchronize(stream)' failed: an illegal memory access was encountered #4

Closed Ichunjo closed 2 years ago

Ichunjo commented 2 years ago

This code fails with the following error:

import vapoursynth as vs
core = vs.core

clip = core.std.BlankClip(width=1440, height=810)
clip = clip.bilateralgpu.Bilateral()

clip.set_output(0)
>>>vspipe -p test.py .   
Script evaluation done in 1.16 seconds
Error: Failed to retrieve frame 0 with error: BilateralGPU: 'cuStreamSynchronize(stream)' failed: an illegal memory access was encountered
Output 24 frames in 2.19 seconds (10.98 fps)
Warning: Core freed but 84049920 bytes still allocated in framebuffers

Using clip = clip.bilateralgpu_rtc.Bilateral(block_y=10) works though. Is the default block_y the cause? Tested with r7. r6 works fine.

WolframRhodium commented 2 years ago

Thanks for the report. Could you please confirm whether the latest commit fixes it?

Ichunjo commented 2 years ago

Yes it does! Thanks for the fix.