hawk.steps#
- hawk.steps(kernel, K)[source]#
kernelsteppingKtimes per launch, named<name>_x<K>.kernelis a tracedhawk.Kernelthat finishes its own sample; the result shares its declarations, kind and slots, withfinish.steps == K.Kis an int>= 1or exactly"auto"(named<name>_xautoinstead — see the module docstring for its trip-count mechanics).The decorator form
@hawk.kernel(steps=K)ishawk.steps(hawk.kernel(fn), K), withsteps=1the plain kernel. A default automatic kernel (@hawk.kernelwithoutsteps=) is derived from its single step.step, sohawk.steps(k, 16)means the same with or without the default.- Return type:
Any- Parameters:
kernel (Any)
K (int | str)