CUDASynth

These CUDA filters are packaged into DGDecodeNV, which is part of DGDecNV.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

Yup. I also got things going with my test script in avscompat mode. I had an earlier version of Vapoursynth and when I upgraded to R44 everything started working.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

Following are performance results with a simple script with just DGSource() followed by DGHDRtoSDR() for 3840x2160. I won't give the exact scripts right now as I need to give you a revised DGHDRtoSDR.dll and a revised AvsCompat.dll to enable you to duplicate my results. I'll give you those things in a while. Benchmarked with AVSMeter and VSEdit.

The change made to AvsCompat.dll for the results below was to add PREFETCHR1(DGHDRtoSDR). DGHDRtoSDR() is not temporal but the prefetching helps Vapoursynth to parallelize things.

Native Avisynth+: 80.4 fps / 14% CPU
Native Avisynth+ with pipeline: 181.7 / 8% CPU

Native Vapoursynth: 79.8 fps
AvsCompat Vapoursynth: 80.2 fps
AvsCompat Vapoursynth with pipeline: 181.7 fps

These results support my proposed plan to not make Vapoursynth native versions but rather to ship an optimized AvsCompat.dll instead. I'm also thinking of revising AvsCompat.dll to be able to read from a file of prefetch values, so users can tweak things. Or, maybe better, add a prefetch parameter to the filter itself for use by AvsCompat.dll. Always thinking outside the box. :twisted:
DAE avatar
Guest

Re: CUDASynth

Post by Guest »

Or, maybe better, add a prefetch parameter to the filter itself for use by AvsCompat.dll.
This sounds like a great idea.
Allows to tweak the performance by filter instead of entire script
User avatar
hydra3333
Posts: 394
Joined: Wed Oct 06, 2010 3:34 am
Contact:

Re: CUDASynth

Post by hydra3333 »

Very nice, yes.
I wonder, the vs author may accept a patch :) https://github.com/vapoursynth/vapoursynth
I really do like it here.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

Just thought to let you guys know I managed to place an order for a 2080 Ti Founders Edition with the nVidia store. It's estimated to ship between 10/19/2018 and 10/26/2018. It's financed from donations so thank you to my users! :salute: You know I will use it to make DG tools greater than ever before for all of us.

https://www.nowinstock.net/computers/vi ... rtx2080ti/

Meanwhile, on the CUDASynth front, I have discovered some very interesting things focused around what Prefetch() does in Avisynth+, and what the PREFETCH macro does in Vapoursynth, and how they interact with CUDASynth. It opens a possible avenue for further performance gains. I'll write a post about it when I get an energy burst. Right now I am working on DGIndex MKV support. I have decoded and displayed a frame from an MKV but have loads of things to do to complete MKV support. Fortunately, most of it can be pulled from DGDecNV.

@hydra3333

A patch would likely not be accepted as similar ideas have been rejected. No problem; it's easy to replace AvisynthCompat.dll.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

My 2080 Ti shipped today and will arrive Saturday. :D
User avatar
hydra3333
Posts: 394
Joined: Wed Oct 06, 2010 3:34 am
Contact:

Re: CUDASynth

Post by hydra3333 »

My goodness, to afford that you won the lottery ? :D
Nice.
I really do like it here.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

Financed by my users. Thank you!
DAE avatar
Guest

Re: CUDASynth

Post by Guest »

admin wrote:
Thu Oct 18, 2018 8:34 pm
My 2080 Ti shipped today and will arrive Saturday. :D
Did it arrive yet?
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

I stepped out for an unavoidable coaching session, and 7 minutes after I drove away the FedEx guy arrived. Murphy's Law. They retry tomorrow and I'll be home all day. I am excited about the tensor cores.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

Bogus info from the lady on the phone! Won't be re-attempted until Tuesday and cannot pickup at FedEx facility per nVidia instructions. :(
DAE avatar
Guest

Re: CUDASynth

Post by Guest »

Gotta be patient, I guess
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

Oy, Fedex! So after telling me the delivery would be Tuesday, they came today (Monday) and of course I was away again. Now the website says they are holding it for pickup at an office 15 miles away! I'll drive out there to pick it up and I suppose they will say it is on the truck for delivery. :facepalm:
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

Alright, the beast is sitting on the desk in front of me now. All's well that ends well. Building up the courage to do the install... :P
DAE avatar
Guest

Re: CUDASynth

Post by Guest »

Watch the power requirements, RTX might be a little higher than the GTX
The RTX has been measured at close to 280 watts
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

Will do. IIRC I have an 800W supply in there. I'm going to install tomorrow morning.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

LOL, it's 850W.

The 2080 Ti install went smoothly. DG tools still working fine. The List GPU dialog shows some weird things, like 0 CUDA cores. I'll have to investigate that. Maybe things need to be rebuilt with a later CUDA toolkit. Will get some preliminary performance numbers shortly.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

Testing 3840x2160 HDR -> SDR script with pipeline:

1080 Ti runs at 180 fps.
2080 Ti runs at 321 fps. 338 fps with moderate overclocking.

That is a hefty performance boost. :wow:

It seems they did some great work on the video engine.

Now I have to decide whether to keep the 1080 TI in this machine as well, or upgrade my backup PC. Putting it in this machine will allow more fun things to play with, such as encoding on the second card, etc.

Christmas came early. ;)
DAE avatar
Guest

Re: CUDASynth

Post by Guest »

Could you check the encoding features for HEVC (such as B frames) on the RTX 2080ti, please?
And you are right, those are some significant numbers on the fps
Question
If you did keep the GTX 1080ti and the RTX 2080ti in the same system which one would you use for frame serving and which one for encoding
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

I'll look into encoding. I never worked with it but this is a good time to start.

If I keep them both in I can try it both ways for decoding and encoding.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

After further testing it appears that the large gain is due to the very fast memory on the 2080 Ti and not due to the video engine. The large gain is seen only for the pipeline and not when the frames are always transferred back to the CPU. So the faster memory copies to/from the GPU pipeline buffers must be the relevant factor.
DAE avatar
Guest

Re: CUDASynth

Post by Guest »

Some new info, for me anyways, on the RTX 2080ti's capabilities
https://developer.nvidia.com/video-enco ... ort-matrix
Please note the new capabilities in the Decode section
Will require a new SDK which hasn't been released yet
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

Interesting, thanks for the link!
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Avisynth Neo

Post by Guest 2 »

I've just seen this: https://github.com/nekopanda/AviSynthPl ... isynth-Neo.

What do you think about it?
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDASynth

Post by admin »

I can't read Japanese so can't make much out of it.
Post Reply