摘要: torch中的矩阵乘法 torch.matmul应该是打包的函数,/home/zwl/software/pytorch/torch/csrc/autograd/generated/python_torch_functions_0.cpp:4865 static PyObject * THPVaria 阅读全文
posted @ 2024-07-29 00:10 zwlwf 阅读(1) 评论(0) 推荐(0) 编辑
摘要: set -g mode-keys vi set -g mouse on # Use v to trigger selection bind-key -T copy-mode-vi v send-keys -X begin-selection # Use y to yank current selec 阅读全文
posted @ 2024-07-17 08:25 zwlwf 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 安装cuda-toolkit, 在没有gpu的情况下,不能安装其中的cuda driver, 不勾选,装cuda toolkit即可。 安装gpgpu-sim程序。gpgpu的仿真程序,目前仅仅支持cuda11。而cuda11最高支持的ubuntu为20.0。但在22.0的ubuntu上下载cuda 阅读全文
posted @ 2024-07-14 22:24 zwlwf 阅读(5) 评论(0) 推荐(0) 编辑
摘要: pytorch训练中的一些优化手段 https://blog.csdn.net/deephub/article/details/139622843 pytorch中python和底层C++ tensor对象关系 https://pytorch.org/cppdocs/notes/tensor_bas 阅读全文
posted @ 2024-07-02 23:53 zwlwf 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 主要参考 https://wiki.qemu.org/Documentation/Networking qemu网络分为后端和前端。 backends是在qemu里设置,如下面的-netdev user, 指定了user类型的backends, 并且讲本地的5555端口和guest上22绑定,如此可 阅读全文
posted @ 2024-06-28 08:20 zwlwf 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 算子工程中sim和cpu模式都运行在cpu上,两者有什么区别? 猜测sim的等效是在npu指令层面,cpu的等效仅仅在AsecendC的层面? 表现在sim可以完全等效得跑cce代码算子,而cpu只能跑AscendC的算子。 当cce代码保存为.cpp后缀的文件,采用ccec编译,需要指定-x cc 阅读全文
posted @ 2024-06-23 23:41 zwlwf 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 离开youcompleteme, vim的使用体验差很多。 下面是vimrc文件中ycm相关配置demo。对于C/C++语言的语法补齐需要安装clangd,python常用的有Jedi set nu set expandtab set tabstop=4 set shiftwidth=4 set m 阅读全文
posted @ 2024-06-14 22:14 zwlwf 阅读(3) 评论(0) 推荐(0) 编辑
摘要: server 端 server端安装nfs-kernel-server, 提供exportfs的应用, sudo apt install nfs-kernel-server 启动nfsd服务的命令是 sudo systemctl start nfs-kernel-server.service exp 阅读全文
posted @ 2024-06-08 17:42 zwlwf 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Ascend Cann toolkit是开发昇腾算子、模型的工具。提供了x86和aarch64两个版本。根据不同芯片,如910B训练卡和310推理卡,提供了不同的kernel安装包,同一芯片版本下kernel同时提供了x86和aarch64的驱动版本。 Cann包的下载地址在 https://www 阅读全文
posted @ 2024-05-26 16:16 zwlwf 阅读(31) 评论(0) 推荐(0) 编辑
摘要: docker傻瓜级教程的一个网页 https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04#step-4-working-with-docker-images 问题1: 阅读全文
posted @ 2024-03-24 08:33 zwlwf 阅读(1) 评论(0) 推荐(0) 编辑