Multithreading ITensors

Hi all,

I am having some issues with multithreading ITensors. In fact, I am getting an error just when I am setting up multiple threads on the slurm manager; I am not even invoking the threads in a for-loop anywhere in my code. Here is what the error readout says:

ERROR: LoadError: TaskFailedException

nested task error: MethodError: no method matching _indices(::Tuple{}, ::Nothing)

Closest candidates are:
  _indices(::Tuple, !Matched::Tuple)
   @ ITensors ~/.julia/packages/ITensors/HjjU3/src/indexset.jl:43
  _indices(::Tuple, !Matched::Index)
   @ ITensors ~/.julia/packages/ITensors/HjjU3/src/indexset.jl:45
  _indices(!Matched::Vector, ::Any)
   @ ITensors ~/.julia/packages/ITensors/HjjU3/src/indexset.jl:52
  ...

I can print more of the error, but I do not know how much more insight can be gleaned from it. This error is specific to starting the process with multiple threads; otherwise, the code runs just fine.

Thank you very much for all the work you put into ITensors! Really appreciate it

Sorry, but I think it’s just a little too hard to guess what is going wrong from the information provided. Are you still encountering this issue? Does it also happen when you use exactly the same setup (running on the cluster through slurm) but just setting the number of threads to 1?