Download code/kernels/sp_pool/pool2x2_reader.cpp from changh95/superpoint-p150: direct link, hf CLI and curl.
- Browser
- Download file 452 Bytes
-
https://huggingface.co/changh95/superpoint-p150/resolve/main/code/kernels/sp_pool/pool2x2_reader.cpp
- Command line
-
hf download hf://changh95/superpoint-p150/code/kernels/sp_pool/pool2x2_reader.cpp
-
curl -L -o pool2x2_reader.cpp https://huggingface.co/changh95/superpoint-p150/resolve/main/code/kernels/sp_pool/pool2x2_reader.cpp
452 Bytes
| // SPDX-FileCopyrightText: © 2026 Tenstorrent USA, Inc. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // Marks the whole input shard (CB bound to it) as available to the compute kernel. | |
| void kernel_main() { | |
| constexpr uint32_t cb_in = get_compile_time_arg_val(0); | |
| constexpr uint32_t npages = get_compile_time_arg_val(1); | |
| cb_reserve_back(cb_in, npages); | |
| cb_push_back(cb_in, npages); | |
| } | |