nccl test 环境
在之前的服务器上发现安装的nccl,不能正确的运行nccl test测试,在尝试了多种方法之后,发现需要重新编译安装nccl
https://github.com/nvidia/nccl
按照官方github上说明进行编译安装
1 | apt install build-essential devscripts debhelper fakeroot -y |
leetcode
ssh 私钥连接服务器记录
若执行ssh-add /path/to/xxx.pem是出现这个错误:Could not open a connection to your authentication agent,则先执行如下命令即可:
ssh-agent bash
然后执行ssh-add xxx.pem
如果出现ssh “permissions are too open” error,则执行chmod命令修改xx.pem文件权限
chmod 400 ~/.ssh/id_rsa 或者 chmod 600 ~/.ssh/id_rsa
volcano ECS开机逻辑修改记录
STL-C++
STL-C++
本文是关于c++中STL库中的一些记录,主要是因为之前在网上找到关于STL的资料太过简洁,并且只停留在如何使用函数,对于底层具体实现较少,所以想自己对这些知识记录一下,当然我目前对STL库了解也不深入,以后如果会有新的了解的话,会继续更新。
vector
vector定义
1 | template<class _Ty, |
剖析
我想成为什么样
其实最近一直有刷题,但是因为题目都比较简单的原因并没有贴到博客上。这样做是因为感觉之前的状态有点像是在为了努力而努力,没有想清楚自己真正想干什么。
最近也一直在思考以后想要做什么,大概率是分布式存储,分布式系统相关的底层架构了。
写这篇博客另一方面也是想激励一下自己,不要再继续颓废下去了,应该想清楚自己该做什么,并且自己应该怎么调节一下自己的心态,让自己不受其他人的影响,尤其是不要跟一些垃圾人多辩解,没有一点好处。
纸上得来终觉浅,绝知此事要躬行,从大佬博客中看到了这句话,一瞬间突然发现自己目前的状态缺了什么,code,多多实践,写一些小项目来更深刻的理解一下。
我想成为什么样?
希望自己能够不焦虑的去努力,一步一步朝着目标前进。
希望自己能够自律,减少耗费在手机与游戏上的时间。
努力吧。
cf-595-div3
A:Yet Another Dividing into Teams
题目:
You are a coach of a group consisting of 𝑛 students. The 𝑖-th student has programming skill 𝑎𝑖. All students have distinct programming skills. You want to divide them into teams in such a way that:
No two students 𝑖 and 𝑗 such that |𝑎𝑖−𝑎𝑗|=1 belong to the same team (i.e. skills of each pair of students in the same team have the difference strictly greater than 1);
the number of teams is the minimum possible.
You have to answer 𝑞 independent queries.
cf-594-div2
A: Integer Points
题目:
DLS and JLS are bored with a Math lesson. In order to entertain themselves, DLS took a sheet of paper and drew 𝑛 distinct lines, given by equations 𝑦=𝑥+𝑝𝑖 for some distinct 𝑝1,𝑝2,…,𝑝𝑛.
Then JLS drew on the same paper sheet 𝑚 distinct lines given by equations 𝑦=−𝑥+𝑞𝑖 for some distinct 𝑞1,𝑞2,…,𝑞𝑚.
DLS and JLS are interested in counting how many line pairs have integer intersection points, i.e. points with both coordinates that are integers. Unfortunately, the lesson will end up soon, so DLS and JLS are asking for your help.