dmrg: resuming with a smaller SWEEPS silently skips to the final sweep
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
src/apps/dmrg/dmrg/dmrg.h の、S.resume の直前にある read_progress の分岐から始めてください。そこではチェックポイントの at.sweep がすでに利用できます。次に checkpoint_cache.h:56 を読んで、なぜ SWEEPS がもはやフィンガープリントに含まれていないのかを確認してください。チェックポイントの最後に完了した at.sweep が SWEEPS を超える場合は、両方の数値を含むメッセージで拒否されるようガードを実装してください。一方で、最後のスイープ(SWEEPS + 1)の途中で強制終了された実行は、引き続き再開できるようにしてください。完了条件は L=16 のハイゼンベルクの再現手順です。SWEEPS=3 でスイープ 2 の途中に強制終了した後、RESUME=1 SWEEPS=1 は終了コード 0 で終わるのではなく拒否されること、また SWEEPS が同じかそれ以上の場合は従来どおりに動作することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
A DMRG run resumed with RESUME=1 and a SWEEPS smaller than the number of sweeps the checkpoint has already done goes straight to the final sweep, exits 0 and reports a result that is not that of a SWEEPS run.
This affects RESUME=1 and KEEP_CHECKPOINT=1 (new in 3.1, so not in a release). It is a small fix in dmrg.h.
Reproducer
L = 16 Heisenberg chain, 8 states, so not converged:
- Run with
SWEEPS=3and kill it in sweep 2, so the checkpoint is at "sweep 2/3". - Rerun the same input with
RESUME=1andSWEEPS=1.
Expected: the run refuses, or at least warns that the checkpoint is past SWEEPS.
Observed: it exits 0 with an energy between the 1-sweep and 2-sweep results, and the output lists SWEEPS=1.
Fix
When resuming (src/apps/dmrg/dmrg/dmrg.h, the read_progress branch before S.resume), refuse if the checkpoint's last completed iteration (at.sweep) is in a sweep beyond SWEEPS. Not the next sweep to run: that is SWEEPS + 1 for a run killed in its final sweep, which must still resume. The message should name both numbers and say to set SWEEPS to at least the checkpoint's count, or to delete the checkpoint and start over. A larger or equal SWEEPS keeps working as now.
Cause
SWEEPS and the states kept were taken out of the checkpoint fingerprint (checkpoint_cache.h:56), so that a run kept with KEEP_CHECKPOINT can be continued with more sweeps. Nothing checks the other direction, so a smaller SWEEPS resumes the checkpoint and S.resume finds no regular sweep left to run.
Context: #373. Seen on master 6d72261.
- 主要言語
- C++
- スター
- 32
- フォーク
- 10
- 平均マージ
- 3日 19時間
- マージ済み PR(30日)
- 100
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ALPSim/ALPS のほかの issue
-
P2
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 2 日以内に返信
-
area:ed bug P3
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 2 日以内に返信
-
[Bug]: loadMeasurements without names returns nothing for worm results (Time interval has no mean)オープンarea:python bug P2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信
-
P2
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 2 日以内に返信
-
cast.hpp: integer bounds raise ~3,600 Clang warnings and reject the long long minimum when long double is 64-bit対応中かも @skilledwolf が 2 日前に担当しました。 オープンP2
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
Niko1221/Strata#7211 · コメント 3 件 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
enhancement P5 XS
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
open-astro/AlpacaBridge#2683 ·
メンテナーはふだん 1 日以内に返信
-
Linux Copr构建失败オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
metasequoiaime/msime#11908 ·
メンテナーはふだん 1 日以内に返信