1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-02 03:06:28 +02:00
FFmpeg/tests
Xu Jun 3c7cad69f2 dnn_backend_native_layer_conv2d.c:Add mutithread function
Use pthread to multithread dnn_execute_layer_conv2d.
Can be tested with command "./ffmpeg_g -i input.png -vf \
format=yuvj420p,dnn_processing=dnn_backend=native:model= \
espcn.model:input=x:output=y:options=conv2d_threads=23 \
 -y sr_native.jpg -benchmark"

before patch: utime=11.238s stime=0.005s rtime=11.248s
after patch:  utime=20.817s stime=0.047s rtime=1.051s
on my 3900X 12c24t @4.2GHz

About the increase of utime, it's because that CPU HyperThreading
technology makes logical cores twice of physical cores while cpu's
counting performance improves less than double. And utime sums
all cpu's logical cores' runtime. As a result, using threads num
near cpu's logical core's number will double utime, while reduce
rtime less than half for HyperThreading CPUs.

Signed-off-by: Xu Jun <xujunzz@sjtu.edu.cn>
Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2020-09-09 14:24:36 +08:00
..
api Remove unnecessary use of avcodec_close(). 2020-06-10 11:31:16 +02:00
checkasm lavfi/hflip: Support Bayer pixel formats. 2020-08-25 01:29:24 +02:00
dnn dnn_backend_native_layer_conv2d.c:Add mutithread function 2020-09-09 14:24:36 +08:00
fate fate: disable automatic conversions on many tests. 2020-09-08 14:16:08 +02:00
filtergraphs fate: add yuv420p10 and yuv422p10 tests for overlay filter 2020-06-19 07:14:46 +08:00
ref lavfi/vsrc_testsrc: switch to activate. 2020-09-08 14:39:43 +02:00
.gitignore
audiogen.c
audiomatch.c
base64.c
copycooker.sh
extended.ffconcat
fate-run.sh fate: disable automatic conversions on many tests. 2020-09-08 14:16:08 +02:00
fate-valgrind.supp
fate.sh
Makefile fate: add tests for h264 and vp9 video enc parameters export 2020-05-25 11:59:45 +02:00
md5.sh
refcmp-metadata.awk
reference.pnm
rotozoom.c
simple1.ffconcat
simple2.ffconcat
test.ffmeta
tiny_psnr.c
tiny_ssim.c
utils.c
videogen.c