nvcodec: Add support runtime CUDA kernel source compilation
authorSeungha Yang <seungha.yang@navercorp.com>
Wed, 16 Oct 2019 13:42:24 +0000 (22:42 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 16 Oct 2020 15:56:49 +0000 (15:56 +0000)
commit4cc73ff9d64cbda3e4360404486ae83c18adf7d2
tree9fd9a15ad17fe42392419c893907891941b70e06
parentdd995bd9d4eae3cabffe37b6ab8f5dedec06a4bc
nvcodec: Add support runtime CUDA kernel source compilation

Add util functions for runtime CUDA kernel source compilation
using NVRTC library. Like other nvcodec dependent libraries,
NVRTC library will be loaded via g_module_open.

Note that the NVRTC library naming is not g_module_open friendly
on Windows.
(i.e., nvrtc64_{CUDA major version}{CUDA minor version}.dll).
So users can specify the dll name using GST_NVCODEC_NVRTC_LIBNAME
environment.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1633>
sys/nvcodec/gstcudanvrtc.c [new file with mode: 0644]
sys/nvcodec/gstcudanvrtc.h [new file with mode: 0644]
sys/nvcodec/gstnvrtcloader.c [new file with mode: 0644]
sys/nvcodec/gstnvrtcloader.h [new file with mode: 0644]
sys/nvcodec/meson.build
sys/nvcodec/stub/nvrtc.h [new file with mode: 0644]