Closed taless474 closed 4 years ago
@taless474 I'd suggest to add something like:
char const* const conv1d_code = R"(block(
define(conv,
block(
define(array,
random_d(8,10,2),
define(kernel,
random(list(4, 2, 100))),
timer(
conv1d_d(array, kernel),
lambda(time, cout(time))
)
),
conv
))";
i.e. a primitive that times the execution of its first argument and passes the collected time to the function that is given as the second argument.
Having the following code:
the elapsed time contains the execution time of 3 primitives:
random_d
,random
andconv1d_d
. It would be really useful to have a primitive that enables us to separate these measurements. Having able to use hpx::util::high_resolution_timer in physl can be a solution.