Intro-ops/cmd.md

1.0 KiB
Raw Permalink Blame History

# git保存用户名密码
# 本地仓库配置,不加 --global
git config credential.helper store
# 指定凭证文件存在项目目录(默认存在~/.git-credentials改到本地
git config credential.helper "store --file ./.git-credentials"
echo ".git-credentials" >> .gitignore
# 查看本仓库git配置
git config --list --local
# 查看所有远程仓库
git remote -v

# 将本地 master 分支重命名为 main
git branch -m master main
# 拉取远程 main 分支,同步远端代码
git pull origin main --allow-unrelated-histories
# 绑定本地 main 与远程 main推送
git push -u origin main
# 查看本地 + 远程所有分支
git branch -a

# 默认3.7.0版本不行
rm -rf third_party/cutlass
mkdir -p third_party
cd third_party/cutlass
git clone --depth 1 --branch v4.4.0 https://gitcode.com/NVIDIA/cutlass.git third_party/cutlass

cd build-nvidia
cmake .. -DCMAKE_CUDA_ARCHITECTURES=80 -DCUTLASS_PATH=../third_party/cutlass

PYTHONPATH=python:. CAMP_BUILD_DIR=build-nvidia pytest tests/op_tests/test_copy.py -v