dmrg: resuming with a smaller SWEEPS silently skips to the final sweep
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
Línea de trabajo
Empieza en src/apps/dmrg/dmrg/dmrg.h en la rama read_progress justo antes de S.resume, donde el at.sweep del checkpoint ya está disponible, y lee checkpoint_cache.h:56 para ver por qué SWEEPS ya no forma parte del fingerprint. Implementa la protección para que un checkpoint cuyo último at.sweep completado sea mayor que SWEEPS sea rechazado con un mensaje que mencione ambos números, mientras que una ejecución interrumpida durante su último sweep (SWEEPS + 1) siga reanudándose. Se considera terminado cuando el reproductor de Heisenberg con L=16 funciona así: SWEEPS=3 interrumpido en el sweep 2, luego RESUME=1 SWEEPS=1 se rechaza en lugar de terminar con código 0, y los valores de SWEEPS iguales o mayores se comportan como antes.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C++
- Estrellas
- 32
- Forks
- 10
- Merge medio
- 3 d 19 h
- PR fusionados (30 d)
- 100
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ALPSim/ALPS
-
P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 2 días
-
area:ed bug P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
Los mantenedores suelen responder en 2 días
-
[Bug]: loadMeasurements without names returns nothing for worm results (Time interval has no mean)Abiertoarea:python bug P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 2 días
-
P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 2 días
-
cast.hpp: integer bounds raise ~3,600 Clang warnings and reject the long long minimum when long double is 64-bitPosiblemente ocupada @skilledwolf la tomó hace 2 días. AbiertoP2
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ALPSim/ALPS#381 · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de ALPSim/ALPS
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Niko1221/Strata#7211 · 3 comentarios ·
Los mantenedores suelen responder en 5 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
Termux compilation failureAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
enhancement P5 XS
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
open-astro/AlpacaBridge#2683 ·
Los mantenedores suelen responder en 1 día
-
Linux Copr构建失败Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
metasequoiaime/msime#11908 ·
Los mantenedores suelen responder en 1 día