0 votes
asked by (120 points)
  1. For debugging, can I turn off threading or use only a single thread? When I try to run my program in the debugger (gdb) I have to step through every line multiple times.
  2. Is there a way turn off 1-based indexing?

1 Answer

0 votes
answered by (70.1k points)

Hi, so I assume you mean the threading that's happening inside of BLAS dgemm? That's the only place that ITensor uses multi threading right now. If you want to force BLAS to be single threaded, it's sort of implementation dependent. Usually the way to do it is to set an environment variable such as export OMPNUMTHREADS=1 which works for Apple vecLib / Accelerate and for MKL. (Also MKL recognizes MKLNUMTHREADS.)

Regarding 1-indexing, no it's just how our interface works, so it can't be turned off. We are actually considering making a Julia version of ITensor at some point where everything, even low-level things, are 1-indexed and then the indexing will be more consistent throughout the high and low level parts of the library.

Miles

Welcome to ITensor Support Q&A, where you can ask questions and receive answers from other members of the community.

Formatting Tips:
  • To format code, indent by four spaces
  • To format inline LaTeX, surround it by @@ on both sides
  • To format LaTeX on its own line, surround it by $$ above and below
  • For LaTeX, it may be necessary to backslash-escape underscore characters to obtain proper formatting. So for example writing \sum\_i to represent a sum over i.
If you cannot register due to firewall issues (e.g. you cannot see the capcha box) please email Miles Stoudenmire to ask for an account.

To report ITensor bugs, please use the issue tracker.

Categories

...