cuda/context: add gpu stack size property
authorMatthew Waters <matthew@centricular.com>
Mon, 16 Dec 2024 06:32:20 +0000 (17:32 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 19 Dec 2024 00:33:03 +0000 (00:33 +0000)
commitdbf4915abd962cd8bb753492da08629d4436c2bd
tree2ce11cf75fe47ca2015aca4baa8af6c50f92a904
parentd6563016ca1dae5a5b594a9f69d817ecaeb8594f
cuda/context: add gpu stack size property

Allows reducing the initial stack size of GPU threads.  Cuda should
automatically increase this value if a kernel requires a larger stack.

Can save roughly 40MB of GPU memory for a single nvh264enc instance.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8158>
girs/GstCuda-1.0.gir
subprojects/gst-plugins-bad/gst-libs/gst/cuda/gstcudacontext.cpp