I set the number of threads by the env variable JULIA_NUM_THREADS and it is correctly read by the repl as you see in the versioninfo() report. Also calling Threads.nthreads() returns 6 in my case.
Starting with -t auto or other numbers changes the number of threads but does not change the results of the code.
What could cause this? I stress that if I make two exactly identical environments in 1.8.0 and 1.6.2, in 1.6.2 I get the correct behavior.
Should I just go for a full reinstallation of 1.8.0?
I can reproduce your result if and only if I set this environment variable. I’m not familiar with what it does but I would start investigating in that end.
Oh damn. I’m honestly not sure what it does exactly but it is (was?) required to make JavaCall work; or at least it was at some point.
Thanks for catching it, I had it sitting there for a few years and it never interfered with threading in the past versions.
Removing that variable solves the threading issue. Might need to open an issue for this