上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 107 下一页
摘要: 转自:https://www.cnblogs.com/xd502djj/archive/2011/02/28/1967350.html 1.命令 1. 查看物理CPU的个数 #cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l 2. 查看逻辑 阅读全文
posted @ 2020-10-14 14:32 lypbendlf 阅读(1284) 评论(0) 推荐(0) 编辑
摘要: 1.安装pytorch https://pytorch.org/get-started/locally/ 在这个网站上根据cuda版本选择命令: conda install pytorch torchvision cudatoolkit=10.0 -c pytorch 安装过程中出现了: Conda 阅读全文
posted @ 2020-10-14 13:54 lypbendlf 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 1.进程kill不掉还是重新开始占用GPU?? https://www.cnblogs.com/shuai7boy/p/12540104.html 命令: top #查看id或nvidia-smi查看占用gpu的pidcd /proc/pid cat status #查看PPID为父进程ID kil 阅读全文
posted @ 2020-10-14 11:01 lypbendlf 阅读(553) 评论(0) 推荐(0) 编辑
摘要: https://www.linuxidc.com/Linux/2015-03/114695.htm 1、利用chown改变所有者: 对Document/ 目录下的所有文件与子目录执行相同的所有者变更,修改所有者为users用户组的username用户 chown -R username:users 阅读全文
posted @ 2020-10-14 11:00 lypbendlf 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 1.查看cuda版本: 1.cat /usr/local/cuda/version.txt 2.或者 nvcc -v 其中遇到了问题,通过第一个cat命令查看版本的时候,显示的是不存在这个目录,去对应目录下也没有发现cuda相关目录,但是通过第2哥nvcc就可以查到是9.1版本的cuda, 那么到底 阅读全文
posted @ 2020-10-13 22:47 lypbendlf 阅读(6523) 评论(0) 推荐(0) 编辑
摘要: 1.挂载与解挂载 转自:https://www.cnblogs.com/zhangguilin/p/6930760.html mkdir /new ###跳板目录 mount /dev/sdb1 /new ###首先挂载跳板目录 cp -R /home/* /new ###复制/home目录所有数据 阅读全文
posted @ 2020-10-13 19:09 lypbendlf 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/gu_study/article/details/81942939 https://blog.csdn.net/Poo_Chai/article/details/80913671 1.CPU利用率 Utilization= work_time/tot 阅读全文
posted @ 2020-10-12 20:55 lypbendlf 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1.要用strcpy https://zhidao.baidu.com/question/104592558.html char c[20]; string s="1234"; strcpy(c,s.c_str()); //这样才不会出错,c_str()返回的是一个临时指针,不能对其进行操作。 下面 阅读全文
posted @ 2020-10-10 14:00 lypbendlf 阅读(131) 评论(0) 推荐(0) 编辑
摘要: https://www.zhihu.com/question/62185153,这个回答下面有很多优秀的回答,但是目前我还有点看不懂。 1. python和C++执行的过程分别是怎样? 阅读全文
posted @ 2020-10-09 22:11 lypbendlf 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/pzhfei/archive/2013/01/14/lambda_expression.html 1.匿名/Lambda函数 [capture](parameters)->return-type{body} 如果没有参数,空的圆括号()可以省略. 阅读全文
posted @ 2020-10-09 22:04 lypbendlf 阅读(143) 评论(0) 推荐(0) 编辑
上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 107 下一页