Open carstenbauer opened 3 years ago
https://github.com/RRZE-HPC/pylikwid/blob/master/pylikwid.c#L861:
static PyObject * likwid_getClock(PyObject *self, PyObject *args) { TimerData timer; uint64_t start,stop; if (!PyArg_ParseTuple(args, "KK", &start, &stop)) { Py_RETURN_NONE; } if (timer_initialized == 0) { timer_init(); timer_initialized = 1; } return Py_BuildValue("d", timer_print(&timer)); }
Unless I'm overlooking something this function doesn't even use the input arguments start and stop in timer_print and, depending on the initialization of TimerData, will always return zero.
start
stop
timer_print
TimerData
Same for likwid_getClockCycles.
likwid_getClockCycles
https://github.com/RRZE-HPC/pylikwid/blob/master/pylikwid.c#L861:
Unless I'm overlooking something this function doesn't even use the input arguments
start
andstop
intimer_print
and, depending on the initialization ofTimerData
, will always return zero.Same for
likwid_getClockCycles
.