上一页 1 2 3 4 5 6 ··· 44 下一页
摘要: C/C++ 实现内存映射 权重采用内存映射方式加载,避免了大规模内存拷贝,特别适合大模型部署。 在C语言中实现内存映射主要使用mmap()系统调用。以下是一个完整的示例,展示如何使用内存映射进行文件读写: 完整的内存映射工具函数 #include <stdio.h> #include <stdlib 阅读全文
posted @ 2025-12-10 10:10 michaelchengjl 阅读(170) 评论(0) 推荐(0)
摘要: RISC-V Linux QEMU编译安装 qemu-system-riscv64 构建 https://blog.csdn.net/flyfish1986/article/details/130004913 https://cloud.tencent.com/developer/article/1 阅读全文
posted @ 2025-11-30 19:38 michaelchengjl 阅读(24) 评论(0) 推荐(0)
摘要: 使用llama.cpp量化部署LLM https://blog.csdn.net/qq_38342510/article/details/138454792?spm=1001.2014.3001.5502 阅读全文
posted @ 2025-11-26 14:51 michaelchengjl 阅读(26) 评论(0) 推荐(0)
摘要: ld.lld: error: undefined symbol: _impure_ptr 出现该问题解决办法 解决方案命令 方法1:显式链接newlib gcc -specs=nosys.specs your_source.c -o output 方法2:使用完整newlib gcc --specs 阅读全文
posted @ 2025-11-13 15:26 michaelchengjl 阅读(94) 评论(0) 推荐(0)
摘要: LLVM intrinsic https://www.cnblogs.com/wujianming-110117/p/16508427.html https://fprox.substack.com/p/risc-v-vector-in-a-nutshell https://blog.csdn.ne 阅读全文
posted @ 2025-10-16 17:25 michaelchengjl 阅读(62) 评论(0) 推荐(0)
摘要: LLVM 后端支持 RISCV 矩阵扩展都有哪些方式 LLVM后端对RISC-V矩阵扩展(RVV,通常为v1.0)的支持是一个多层次、多方式的生态系统。下面我将详细列举并举例说明所有主要方式。 总的来说,支持方式可以分为三大类,其与工具链的关系如下图所示: flowchart LR A[LLVM对R 阅读全文
posted @ 2025-10-13 15:37 michaelchengjl 阅读(284) 评论(0) 推荐(0)
摘要: triton 官方编译管线分析 我们来系统地分析从Triton前端到LLVM后端的完整编译器管线,重点聚焦各个层级的功能、作用以及分块策略。 整个Triton编译器的架构可以概括为一个多层次的分块、 lowering 和优化过程,其核心管线如下图所示: flowchart tritonFronten 阅读全文
posted @ 2025-10-13 15:08 michaelchengjl 阅读(373) 评论(0) 推荐(0)
摘要: MLIR — Running and Testing a Lowering https://zhuanlan.zhihu.com/p/337627570 https://www.jeremykun.com/2023/08/10/mlir-running-and-testing-a-lowering/ 阅读全文
posted @ 2025-10-13 14:52 michaelchengjl 阅读(19) 评论(0) 推荐(0)
摘要: 使用readelf和objdump查看ELF常见段 https://blog.csdn.net/qq_42570601/article/details/127360128 https://linuxtools-rst.readthedocs.io/zh-cn/latest/tool/objdump. 阅读全文
posted @ 2025-09-09 17:52 michaelchengjl 阅读(56) 评论(0) 推荐(0)
摘要: gem5 使用指南 https://blog.csdn.net/qq_43381135/article/details/104371236 https://zhuanlan.zhihu.com/p/487737252 https://blog.csdn.net/qq_34898487/article 阅读全文
posted @ 2025-09-09 16:11 michaelchengjl 阅读(25) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 44 下一页