superpoint-p150 / code /kernels /sp_pool /pool2x2_writer.cpp
changh95's picture
Optimized build (2026-10-03): trace 3.73 -> 0.50 ms
c699c4c verified
Raw History Blame Contribute Delete
421 Bytes
// SPDX-FileCopyrightText: © 2026 Tenstorrent USA, Inc.
// SPDX-License-Identifier: Apache-2.0
// Waits until the compute kernel has packed the whole output shard (CB bound to it).
#include <stdint.h>
#include "api/dataflow/dataflow_api.h"
void kernel_main() {
constexpr uint32_t cb_out = get_compile_time_arg_val(0);
constexpr uint32_t npages = get_compile_time_arg_val(1);
cb_wait_front(cb_out, npages);
}