You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The @timeit_debug decorator from TimerOutputs does not to seem to function properly as timeit_debug_enabled is not defined in ITensors. See also screenshot of README from TimerOutputs.
root@8506b93efb68:/opt/project/examples# julia tmp.jl
Resolving package versions...
No Changes to `~/.julia/environments/v1.10/Project.toml`
No Changes to `~/.julia/environments/v1.10/Manifest.toml`
ERROR: LoadError: UndefVarError:`timeit_debug_enabled` not defined
Stacktrace:
[1] enable_debug_timings(m::Module)
@ TimerOutputs ~/.julia/packages/TimerOutputs/Lw5SP/src/TimerOutput.jl:187
[2] top-level scope
@ /opt/project/examples/tmp.jl:5
in expression starting at /opt/project/examples/tmp.jl:5
root@8506b93efb68:/opt/project/examples#
Version information
Output from versioninfo():
julia>versioninfo()
Julia Version 1.10.5
Commit 6f3fdf7b362 (2024-08-2714:19 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (aarch64-linux-gnu)
CPU:8× unknown
WORD_SIZE:64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, generic)
Threads:1 default, 0 interactive, 1 GC (on 8 virtual cores)
Environment:
JULIA_GPG =3673DF529D9049477F76B37566E3C7DC03D6E495
JULIA_VERSION =1.10.5
JULIA_PATH =/usr/local/julia
Output from using Pkg; Pkg.status("ITensors"):
julia>using Pkg; Pkg.status("ITensors")
Status `~/.julia/environments/v1.10/Project.toml`
[9136182c] ITensors v0.6.17
The text was updated successfully, but these errors were encountered:
I wanted to time dmrg, i.e., how much time dmrg spends in the subroutines, e.g., truncating, eigenvalue solve, etc. You do use the timeit_debug decorators, but I couldn't find tests for it. Did you test it?
I don't remember testing it, I haven't used TimerOutputs in a long time, we were mostly using it in the codebase for debugging some performance issues early on when developing the package. Probably we should remove it at this point, it isn't really meant for external users.
I'll keep this issue open as a reminder to remove TimerOutputs from the codebase.
@MazenAli to summarize, I would recommend using a profiler instead, or dev'ing the package and adding your own timers with TimerOutputs if you prefer to use TimerOutputs.
mtfishman
changed the title
[ITensors] [BUG] timeit_debug_enabled not defined
[ITensors] [ENCHANCEMENT] Remove TimerOutputs.jl as a dependency
Sep 10, 2024
Description of bug
The
@timeit_debug
decorator fromTimerOutputs
does not to seem to function properly astimeit_debug_enabled
is not defined inITensors
. See also screenshot of README fromTimerOutputs
.Minimal runnable code
Output of minimal runnable code
Version information
versioninfo()
:using Pkg; Pkg.status("ITensors")
:The text was updated successfully, but these errors were encountered: