summaryrefslogtreecommitdiff
path: root/libavutil/opencl.c
diff options
context:
space:
mode:
authorLenny Wang <lenny@multicorewareinc.com>2013-09-10 02:57:54 -0500
committerMichael Niedermayer <michaelni@gmx.at>2013-09-17 21:21:11 +0200
commit29664fab0c22d3ffffe0fb3a925b192f62218000 (patch)
tree16ded02d9b43e59a4b61c075f1a5628a89fc7af2 /libavutil/opencl.c
parent78f680cb3664624fedc00d03b0cd77255da2776b (diff)
OpenCL: convert meaningless "device id" output to "device name"
Approved-by: Wei Gao <highgod0401@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/opencl.c')
-rw-r--r--libavutil/opencl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/opencl.c b/libavutil/opencl.c
index 5887b50bda..e0b28c309c 100644
--- a/libavutil/opencl.c
+++ b/libavutil/opencl.c
@@ -516,9 +516,9 @@ static int init_opencl_env(OpenclContext *opencl_ctx, AVOpenCLExternalEnv *ext_o
/*
* Use available platform.
*/
- av_log(opencl_ctx, AV_LOG_VERBOSE, "Platform Name: %s, device id: 0x%x\n",
+ av_log(opencl_ctx, AV_LOG_VERBOSE, "Platform Name: %s, Device Name: %s\n",
opencl_ctx->device_list.platform_node[opencl_ctx->platform_idx]->platform_name,
- (unsigned int)opencl_ctx->device_id);
+ device_node->device_name);
cps[0] = CL_CONTEXT_PLATFORM;
cps[1] = (cl_context_properties)opencl_ctx->platform_id;
cps[2] = 0;