forked from 2742195759/xkvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vim_config.yaml
71 lines (67 loc) · 3.66 KB
/
.vim_config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
search_config: [
'--exclude-dir="/build/*"',
'--exclude-dir="/.git/*"',
'--exclude-dir="/doc/*"',
'--exclude-dir="/docs/*"',
'--exclude-dir="/patches/*"',
'--exclude-dir="/r/*"',
'--exclude-dir="/tools/*"',
'--exclude-dir="/Default/*"',
'--exclude="tags"',
'--exclude="*.cmake"',
'--exclude="*.json"',
'--exclude="*.swp"',
'--exclude-dir="/__pycache__/*"',
'--exclude="*.log"',
'--exclude-dir="/node-v*"',
'--exclude-dir="/BrowserMetrics*"',
]
terminal_abbreviate: [
["proxy", "export http_proxy=http://172.19.57.45:3128\nexport https_proxy=http://172.19.57.45:3128\nexport no_proxy=localhost,bj.bcebos.com,su.bcebos.com,paddle-wheel.bj.bcebos.com\n"],
["proxy2", "export https_proxy=agent.baidu.com:8188;export http_proxy=agent.baidu.com:8188"],
["noproxy", "unset http_proxy\nunset https_proxy\n"],
["find", "find ./ -name '*.py'"],
["objdump", "objdump -t -C "],
["nm", "nm -C "],
["CUDA_VISIBLE_DEVICES", "CUDA_VISIBLE_DEVICES=2"],
["FLAGS_call_stack_level", "FLAGS_call_stack_level=2"],
["FLAGS_cudnn_deterministic", "FLAGS_cudnn_deterministic=True"],
["FLAGS_use_system_allocator", "FLAGS_use_system_allocator=True"],
["FLAGS_cinn_compile_thread_num", "FLAGS_cinn_compile_thread_num=1"],
["FLAGS_benchmark", "FLAGS_benchmark=1 "],
["FLAGS_enable_pir_api", "FLAGS_enable_pir_api=True "],
["FLAGS_print_ir", "FLAGS_print_ir=1 FLAGS_pir_debug=1 "],
["main_program", "paddle.static.default_main_program()"],
["git push", "git push xiongkun {b:git branch | grep \\* | cut -c3-}"],
["git add xiongkun", "git remote add xiongkun https://github.com/2742195759/Paddle"],
["git username", "git config --global user.email '[email protected]'\ngit config --global user.name 'xiongkun"],
["git fetch", "git fetch upstream pull/<PR-ID>/head:<local-branch>"],
["git develop", "git fetch --all \n git checkout upstream/develop \n"],
["rebuild paddle", "rm -f CMakeCache.txt && ./rebuild.sh"],
["install paddle nightly", "python -m pip install paddlepaddle-gpu==0.0.0.post112 -f https://www.paddlepaddle.org.cn/whl/linux/gpu/develop.html\n"],
["install miniconda", "wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh"],
["nsys", "/opt/nvidia/nsight-systems/2024.5.1/bin/nsys profile -t cuda,nvtx --cpuctxsw=process-tree -o my_report --force-overwrite true python /tmp/xxxx.py"],
["uninstall paddle", "pip uninstall paddlepaddle_gpu\n"],
["reinstall sot", "pip uninstall PaddleSOT\npip install git+https://github.com/PaddlePaddle/PaddleSOT\n"],
["where paddle", "python -c 'import paddle; print(paddle.__path__)'\n"],
["where sot", "python -c 'import sot; print(sot.__path__)'\n"],
["paddle commit", "python -c 'import paddle; print(paddle.version.commit)'\n"],
["paddle develop install", "pip uninstall paddlepaddle_gpu && wget http://10.255.125.22:8082/paddlepaddle_gpu-0.0.0-cp38-cp38-linux_x86_64.whl && pip install paddlepaddle_gpu-0.0.0-cp38-cp38-linux_x86_64.whl\n"],
["install nsys", "wget https://developer.nvidia.com/downloads/assets/tools/secure/nsight-systems/2024_5/NsightSystems-linux-public-2024.5.1.113-3461954.run"],
["upload file", "python ~/xkvim/cmd_script/upload.py --file "],
["PYTHONPATH", 'PYTHONPATH={p:Xiongkun.FileSystem().cwd}/build/python/'],
]
# mac | pc is supported
default_remote: mac
# Run command <F9>
#default_run: ""
# used by special_path_eval
special_paths:
- name: sot
remote: true
type: bash
command: python3.8 -c "import sot; print(sot.__path__[0])"
- name: paddle
remote: true
type: bash
command: python3.8 -c "import paddle; print(paddle.__path__[0])"