Download code/hamer/kernels/cmm/fused_mover.cpp from changh95/hamer-p150: direct link, hf CLI and curl.
- Browser
- Download file 916 Bytes
-
https://huggingface.co/changh95/hamer-p150/resolve/main/code/hamer/kernels/cmm/fused_mover.cpp
- Command line
-
hf download hf://changh95/hamer-p150/code/hamer/kernels/cmm/fused_mover.cpp
-
curl -L -o fused_mover.cpp https://huggingface.co/changh95/hamer-p150/resolve/main/code/hamer/kernels/cmm/fused_mover.cpp
916 Bytes
| // SPDX-FileCopyrightText: © 2026 Tenstorrent Inc. | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // Round 8: cmm (mover1) followed by the add+LN epilogue in ONE program on the cmm grid. | |
| // FUSED_PAR 0 (NCRISC): mover1 weights, then the add+LN reader (x resident, gamma / beta, scaler, the next cmm's | |
| // weight prefetch). FUSED_PAR 1 (BRISC): mover1 activations + bias (the cmm output stays in its CB, CMM_ADDLN), | |
| // then the add+LN writer (statistics gather, LN output). The add+LN arguments follow mover1's (ADDLN_CT0 / ADDLN_RT0). | |
| void kernel_main() { | |
| {DeviceZoneScopedN("W-mover"); cmm_mover_main();} | |
| cmm_mover_main(); | |
| addln_part(); | |
| } | |