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,046 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
numpy, python
领域
backend, data

调研方向

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 内容生成。

描述

enhancement

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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

lanl/PyBNF 的其他 Issue

查看 lanl/PyBNF 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。