An lwf_continue run on another numpy version or CPU cannot write what the uninterrupted run wrote, and the state file's fingerprint records neither
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Read docs/algorithms.rst and LiuWestFilter._build_fingerprint in pybnf/algorithms/filters/liu_west.py (around line 651), then review issue #1035 for the reported numerical differences. Decide how the fingerprint or documented promise should account for NumPy and CPU differences; done means the continuation behavior or its documented guarantee clearly reflects those differences.
由索引模型根据 Issue 内容生成。
描述
docs/algorithms.rst promises that an lwf_continue run "writes byte for byte what an uninterrupted run writes". The state file's fingerprint (LiuWestFilter._build_fingerprint, pybnf/algorithms/filters/liu_west.py:651) records the PyBNF and bngsim versions and their builds, but nothing about numpy or the CPU.
Why that breaks the promise. numpy's results for exp, log and pow differ in the last bit between versions and between SIMD paths. #1035 measured it: on AVX-512 CPUs with numpy 1.26, SVML and the C library disagree for about a quarter of float64 pow values. A run continued on another numpy, or on a node with or without AVX-512, therefore cannot write the uninterrupted run's bytes, and nothing says so.
Options:
- Record numpy's version, and maybe
np.show_runtime()'s SIMD features, in the fingerprint. Refuse on a mismatch, or warn. - Narrow the documented promise to the same numpy and CPU.
Raising the numpy floor to 2.x would remove the address dependence #1035 fixed, but not differences between versions or CPUs.
- 主要语言
- Python
- 星标
- 25
- 派生
- 25
- 平均合并
- 4 小时 5 分钟
- 30 天内合并 PR
- 10
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
lanl/PyBNF 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug minor
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug tech debt
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug minor
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
bug silent-incorrectness
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
software-mansion-labs/Diplomat#20 ·
维护者通常 1 天内回复
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client area可能已有人在做 @lijy91 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 67/100
libnativeapi/nativeapi#53 · 1 个 reaction ·
维护者通常 1 天内回复
-
View Counts discarded due to field name mismatch可能已有人在做 @rsiva0400 今天认领。 未关闭site-bug triage
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Model version publishes the new UK firm entity as a person可能已有人在做 @vahid-ahmadi 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
PolicyEngine/policyengine.py#764 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
spcl/HPCAgent-Bench#264 ·
维护者通常 1 天内回复