TLUSTY/cno_grid/dist_config.yaml
2026-07-27 10:40:18 +08:00

48 lines
2.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 分布式网格计算配置dist_master.py 用)。
# 架构master 单向 SSH 推/拉(只需 master 能 SSH 进 workerworker 不回连 master
# 网格轴本身仍在 config.yaml 定义,这里只配 master/workers。
# 种子来源master 本地 results/(收敛点的 .7 汇聚处,异地结果由 master scp 取回)。
#
# 部署:填好本文件后
# python3 src/dist_master.py dist_config.yaml --dry-run # 预览
# python3 src/dist_master.py dist_config.yaml # 全量跑
master:
# master 上 cno_grid 目录tasks.json 在此,调度在此)
workdir: /home/dckj/program/tlusty/tl208-s54/cno_grid
# 网格配置(默认 workdir/config.yaml
grid_config: /home/dckj/program/tlusty/tl208-s54/cno_grid/config_dense.yaml
# 结果根目录(相对 workdir 或绝对路径;与 config.yaml 的 results 一致)
# master 在此汇总 grid_status.json各 worker 各自有自己的 results/(同名)
# 收敛点的 .7 也汇聚在此seed_step 找种子时扫描该目录)
results: results
# ---- worker 节点master 只需能 SSH 进这些机器)----
# 每个 worker
# host : user@hostSSH 目标。localhost 表示本机也算一个 worker。
# tlusty_root: 该机器上 TLUSTY 树根(含 tlusty/tlusty.exe、synspec/、data/
# ⚠️ 必须用绝对路径!~/xxx 的 ~ 不会被 Python os.path 展开,
# 导致 run_one.py 找不到 tlusty.exeFileNotFoundError
# nproc : 该机贡献的并发进程数(建议 ≤ 物理核数)
#
# 注意:单向 SSH。只需 master→worker 免密worker 不需要 SSH 回 master。
#
# 示例5 台机器):
workers:
- host: localhost
tlusty_root: /home/dckj/program/tlusty/tl208-s54
nproc: 22
- host: dckj@192.168.7.102
tlusty_root: /home/dckj/DataSheel/tlusty
nproc: 35
# - host: user@server3
# tlusty_root: ~/tlusty/tl208-s54
# nproc: 24
# - host: user@server4
# tlusty_root: ~/tlusty/tl208-s54
# nproc: 16
# - host: user@server5
# tlusty_root: ~/tlusty/tl208-s54
# nproc: 24