def _compute_thread_per_block(kernel, tpb):
    if tpb != 0:
        return tpb

    else:
        try:
            tpb = kernel.autotune.best()
        except __HOLE__:
            warnings.warn('Could not autotune, using default tpb of 128')
            tpb = 128

        return tpb
dataset/ETHPy150Open numba/numba/numba/cuda/compiler.py/_compute_thread_per_block