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:
parent
87666a2d3b
commit
51cbcfbc57
@ -318,7 +318,7 @@ gst_cuda_nvrtc_compile_with_option (const gchar * source,
|
|||||||
|
|
||||||
ret = NvrtcCreateProgram (&prog, source, nullptr, 0, nullptr, nullptr);
|
ret = NvrtcCreateProgram (&prog, source, nullptr, 0, nullptr, nullptr);
|
||||||
if (ret != NVRTC_SUCCESS) {
|
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;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -335,12 +335,12 @@ gst_cuda_nvrtc_compile_with_option (const gchar * source,
|
|||||||
if (ret != NVRTC_SUCCESS) {
|
if (ret != NVRTC_SUCCESS) {
|
||||||
gsize log_size;
|
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 &&
|
if (NvrtcGetProgramLogSize (prog, &log_size) == NVRTC_SUCCESS &&
|
||||||
log_size > 0) {
|
log_size > 0) {
|
||||||
gchar *compile_log = (gchar *) g_alloca (log_size);
|
gchar *compile_log = (gchar *) g_alloca (log_size);
|
||||||
if (NvrtcGetProgramLog (prog, compile_log) == NVRTC_SUCCESS) {
|
if (NvrtcGetProgramLog (prog, compile_log) == NVRTC_SUCCESS) {
|
||||||
GST_ERROR ("nvrtc compile log %s", compile_log);
|
GST_INFO ("nvrtc compile log %s", compile_log);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user