daphne-eu / daphne

DAPHNE: An Open and Extensible System Infrastructure for Integrated Data Analysis Pipelines
Apache License 2.0
67 stars 62 forks source link

--statistics output is wrong when used in combination with --vec #879

Open philipportner opened 4 weeks ago

philipportner commented 4 weeks ago

When using --statistics together with --vec, the output mistakenly show calls to _createDaphneContext__DaphneContext. This is caused by a bug in KernelDispatchMapping.h which starts its mapping counter with zero, together with genKernelInst.py, which for instantiations of the vectorized kernel passes zero to the call to [pre|post]KernelInstrumentation().

[info]: DAPHNE operator execution runtime statistics.
[info]: #   Operator Name                                                                                           Time(s)  Count        Avg(s)  File:Line:Column
[info]: 0   _createDaphneContext__DaphneContext__uint64_t__uint64_t__uint64_t__uint64_t                             5.73     603          0.01   script.daphne:1:0
[info]: 1   _ewSub__DenseMatrix_double__DenseMatrix_double__DenseMatrix_double                                      0.01     2923         0.00   script.daphne:24:50