aboutsummaryrefslogtreecommitdiff
path: root/cmdutils_common_opts.h
diff options
context:
space:
mode:
authorLenny Wang2013-12-08 21:01:00 -0600
committerMichael Niedermayer2013-12-09 21:21:36 +0100
commit64f73acd1d3853e55a7cd7631987dfd83c4171e7 (patch)
treecdb797b8e3dbe005c675d6ebab4f45cc94b49efd /cmdutils_common_opts.h
parent8e702bd3a8f5a4271590ab5aa38a41087ceaab1b (diff)
cmdutils & opencl: add -opencl_bench option to test and show available OpenCL devices
Reviewed-by: Wei Gao <highgod0401@gmail.com> Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'cmdutils_common_opts.h')
-rw-r--r--cmdutils_common_opts.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmdutils_common_opts.h b/cmdutils_common_opts.h
index 3e3f0ac5c8..685163e7d1 100644
--- a/cmdutils_common_opts.h
+++ b/cmdutils_common_opts.h
@@ -22,5 +22,6 @@
{ "max_alloc" , HAS_ARG, {.func_arg = opt_max_alloc}, "set maximum size of a single allocated block", "bytes" },
{ "cpuflags" , HAS_ARG | OPT_EXPERT, { .func_arg = opt_cpuflags }, "force specific cpu flags", "flags" },
#if CONFIG_OPENCL
+ { "opencl_bench", OPT_EXIT, {.func_arg = opt_opencl_bench}, "run benchmark on all OpenCL devices and show results" },
{ "opencl_options", HAS_ARG, {.func_arg = opt_opencl}, "set OpenCL environment options" },
#endif