Skip to content

Instantly share code, notes, and snippets.

View zfb132's full-sized avatar
🏠
Working from School

Fubin Zhang zfb132

🏠
Working from School
View GitHub Profile
@zfb132
zfb132 / README.md
Created April 7, 2024 09:48 — forked from michaelchughes/README.md
Fixes for GLIBC errors when installing tensorflow or pytorch on older Red Hat or CentOS cluster environments

Goal

Install working tensorflow or pytorch via standard conda environment workflow.

Basic Setup : Install pytorch in a fresh conda environment

The recommended conda-based install process works smoothly:

$ # Create a fresh environment
@zfb132
zfb132 / NUMA node problem.md
Created June 12, 2023 06:38 — forked from zrruziev/NUMA node problem.md
Fixing "successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero" problem

What is NUMA (Non-Uniformed Memory Access)

Non-Uniform Memory Access (NUMA) is one of the computer memory design methods used in multiprocessor systems, and the time to access the memory varies depending on the relative position between the memory and the processor. In the NUMA architecture, when a processor accesses its local memory, it is faster than when it accesses the remote memory. Remote memory refers to memory that is connected to another processor, and local memory refers to memory that is connected to its own processor. In other words, it is a technology to increase memory access efficiency while using multiple processors on one motherboard. When a specific processor runs out of memory, it monopolizes the bus by itself, so other processors have to play. , and designate 'access only here', and call it a NUMA node.

1. Check Nodes

lspci | grep -i nvidia
  
01:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2060 12GB] (rev a1)
@zfb132
zfb132 / git_ssh_proxy.md
Created June 16, 2022 02:52 — forked from chenshengzhi/git_ssh_proxy.md
git ssh 代理设置

仅为 GitHub 设置代理

git 代理

设置 git config --global http.https://git.521000.best.proxy socks5://127.0.0.1:1086
设置完成后, ~/.gitconfig 文件中会增加以下条目:

[http "https://github.com"]
    proxy = socks5://127.0.0.1:1086
@zfb132
zfb132 / powershell_proxy.md
Last active August 5, 2021 03:37
Windows配置Powershell代理

方法一:
为 PowerShell 设置代理,命令如下:

$Env:http_proxy="http://127.0.0.1:7890";
$Env:https_proxy="http://127.0.0.1:7890";

这是临时命令,重新代理终端需要重新输入
如果想要永久设置代理,建议使用自定义配置,使每次代理 PowerShell 窗口时,运行如上命令:

在 PowerShell 窗口中运行如下指令:

@zfb132
zfb132 / private_fork.md
Created January 9, 2021 10:56 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git