Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
6b0a3ee6
Commit
6b0a3ee6
authored
Jan 18, 2017
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/nvenc: add logging for more error cases
parent
5403d90f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
nvenc.c
libavcodec/nvenc.c
+6
-2
No files found.
libavcodec/nvenc.c
View file @
6b0a3ee6
...
@@ -325,12 +325,16 @@ static av_cold int nvenc_check_device(AVCodecContext *avctx, int idx)
...
@@ -325,12 +325,16 @@ static av_cold int nvenc_check_device(AVCodecContext *avctx, int idx)
}
}
cu_res
=
dl_fn
->
cuda_dl
->
cuDeviceGetName
(
name
,
sizeof
(
name
),
cu_device
);
cu_res
=
dl_fn
->
cuda_dl
->
cuDeviceGetName
(
name
,
sizeof
(
name
),
cu_device
);
if
(
cu_res
!=
CUDA_SUCCESS
)
if
(
cu_res
!=
CUDA_SUCCESS
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"cuDeviceGetName failed on device %d
\n
"
,
idx
);
return
-
1
;
return
-
1
;
}
cu_res
=
dl_fn
->
cuda_dl
->
cuDeviceComputeCapability
(
&
major
,
&
minor
,
cu_device
);
cu_res
=
dl_fn
->
cuda_dl
->
cuDeviceComputeCapability
(
&
major
,
&
minor
,
cu_device
);
if
(
cu_res
!=
CUDA_SUCCESS
)
if
(
cu_res
!=
CUDA_SUCCESS
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"cuDeviceComputeCapability failed on device %d
\n
"
,
idx
);
return
-
1
;
return
-
1
;
}
av_log
(
avctx
,
loglevel
,
"[ GPU #%d - < %s > has Compute SM %d.%d ]
\n
"
,
idx
,
name
,
major
,
minor
);
av_log
(
avctx
,
loglevel
,
"[ GPU #%d - < %s > has Compute SM %d.%d ]
\n
"
,
idx
,
name
,
major
,
minor
);
if
(((
major
<<
4
)
|
minor
)
<
NVENC_CAP
)
{
if
(((
major
<<
4
)
|
minor
)
<
NVENC_CAP
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment