摘要: Go语言基础 go语言由google开发,对分布式系统开发友好 安装与设置 从Go官网下载并安装Go。 配置环境变量: 设置GOPATH(工作区路径)。 将GOBIN添加到系统的PATH中。 基本语法 首先进行一个基础的hello world程序编写 package main import "fmt 阅读全文
posted @ 2025-04-15 00:06 LemHou 阅读(2) 评论(0) 推荐(0)
摘要: volcano-scheduler源码阅读 volcano-scheduler源码结构为 pkg/scheduler: 调度器源码 actions: 调度器的调度动作 allocate backfill enqueue preempt reclaim shuffle api: cache capab 阅读全文
posted @ 2025-04-13 18:07 LemHou 阅读(6) 评论(0) 推荐(0)
摘要: vscode软件基础教程 debug配置 launch.json配置 { "configurations": [ { "name": "g++", "type": "cppdbg", "request": "launch", "program": "${fileDirname}\\build\\${ 阅读全文
posted @ 2025-04-05 21:28 LemHou 阅读(4) 评论(0) 推荐(0)
摘要: k8s基本字段 apiVersion apiVersion:v1,k8s以常见核心对象都属于v1核心API。常见的pod,service等都属于核心API; apiVersion: apps/v1,表示扩展资源如deployment,statefulSet,daemonSet limits字段 此字 阅读全文
posted @ 2025-03-22 01:13 LemHou 阅读(4) 评论(0) 推荐(0)
摘要: python基础小知识 字符串 r保持字符串 # 此时\n会转义为换行符 print('s\ntr') # 第1种防止转义 print('s\\ntr') # 第2种防止转义 print(r's\ntr') \符号 作为转义字符 # 此时\n会转义为换行符 print('s\ntr') 作为续行字符 阅读全文
posted @ 2025-03-09 21:30 LemHou 阅读(7) 评论(0) 推荐(0)
摘要: shell基础知识 首先查看当前服务器支持的shell类型cat /etc/shells 基本符号 '|'管道符号 '|', 管道符号,通常用于进程间通信 ls | grep a '$@'参数 $@代表所有的参数 export DEBUG=true DEBUG() { if [ "DEBUG" == 阅读全文
posted @ 2025-02-15 00:18 LemHou 阅读(9) 评论(0) 推荐(0)
摘要: C++编程执行shell命令 本文写作用于linuxC++编程 system调用执行shell命令 使用system(“ls -l ”)执行shell命令,但其返回值为整型。返回0则为不成功执行。 #include <iostream> int main(){ std::string cmd = " 阅读全文
posted @ 2025-02-13 00:13 LemHou 阅读(52) 评论(0) 推荐(0)
摘要: 管道 linux系统中,管道常用于进程间通信。常见的shell命令如ls | grep name中的|符号就是默认的管道,首先ls程序会将输出通过管道传给grep程序的输入。 管道的意义 两个fd作为A进程的数据对象,进程clone()或者fork()出B进程时,进程会复制初始进程的数据,从而B进程 阅读全文
posted @ 2025-02-11 00:14 LemHou 阅读(4) 评论(0) 推荐(0)
摘要: 一文搭建本地镜像仓 拉取registry镜像 docker pull registry:2 运行registry容器 第1种方式:不加持久化 docker run -d -p 5000:5000 --restart=always --name=registry registry:2 第2种方式:对初 阅读全文
posted @ 2025-01-20 23:10 LemHou 阅读(51) 评论(0) 推荐(0)
摘要: 进程间通信MPI MPI(Message Passing Interface), 消息传递接口,通常用于并行计算场景中多进程间通信。以一个计算节点为例,节点中有8张GPU卡,通常一张卡上有一个训练任务进程,8张卡就会涉及到8个进程,此时训练时,进程间的通信就会变的极其重要。这种多进程通信,也被称为集 阅读全文
posted @ 2024-11-03 23:54 LemHou 阅读(177) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示