cuda: Lower debug log level on nvrtc compilation failure

We have a fallback to compile with cubin and that compilation failure
might very well not be fatal.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9232>
This commit is contained in:
Thibault Saunier 2025-06-17 10:56:03 -04:00 committed by GStreamer Marge Bot
parent 87666a2d3b
commit 51cbcfbc57

View File

@ -318,7 +318,7 @@ gst_cuda_nvrtc_compile_with_option (const gchar * source,
ret = NvrtcCreateProgram (&prog, source, nullptr, 0, nullptr, nullptr);
if (ret != NVRTC_SUCCESS) {
GST_ERROR ("couldn't create nvrtc program, ret %d", ret);
GST_WARNING ("couldn't create nvrtc program, ret %d", ret);
return nullptr;
}
@ -335,12 +335,12 @@ gst_cuda_nvrtc_compile_with_option (const gchar * source,
if (ret != NVRTC_SUCCESS) {
gsize log_size;
GST_ERROR ("couldn't compile nvrtc program, ret %d", ret);
GST_WARNING ("couldn't compile nvrtc program, ret %d", ret);
if (NvrtcGetProgramLogSize (prog, &log_size) == NVRTC_SUCCESS &&
log_size > 0) {
gchar *compile_log = (gchar *) g_alloca (log_size);
if (NvrtcGetProgramLog (prog, compile_log) == NVRTC_SUCCESS) {
GST_ERROR ("nvrtc compile log %s", compile_log);
GST_INFO ("nvrtc compile log %s", compile_log);
}
}