nvcodec: Register all elements if CUDA kernel is precompiled
GstCudaConverter dependent element can work if CUDA kernel is precompiled even if runtime compiler library is not found Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8536>
This commit is contained in:
parent
ae8eef82a6
commit
184ac2d930
@ -193,7 +193,15 @@ plugin_init (GstPlugin * plugin)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
#ifdef NVCODEC_CUDA_PRECOMPILED
|
||||
/* If cuda kernels are precompiled, just try library load library.
|
||||
* Even if we have compiled kernel bytecode, we may need to use
|
||||
* this runtime compiler as a fallback */
|
||||
gst_cuda_nvrtc_load_library ();
|
||||
have_nvrtc = TRUE;
|
||||
#else
|
||||
have_nvrtc = check_runtime_compiler ();
|
||||
#endif
|
||||
if (!have_nvrtc) {
|
||||
gst_plugin_add_status_info (plugin,
|
||||
"CUDA runtime compilation library \"" NVRTC_LIBNAME "\" was not found, "
|
||||
|
Loading…
x
Reference in New Issue
Block a user