12-08-2015 10:02 AM
Yes, I use parallel FOR loops all the time without any problems.. However I typically don't use parallel FOR loops and VIs from the High Perf library in the same VI.
12-08-2015 11:05 AM
Hi altenbach,
I found some good starting documentation here: http://www.ni.com/white-paper/14113/en/
Two things I've found which are interesting.
1. "It is not recommended to execute functions from the Multicore Analysis and Sparse Matrix library in parallel with each other." (Taken from the white paper I linked)
2. "By default, the Multicore Analysis and Sparse Matrix VIs use the number of physical cores as the maximum number of threads unless you specify a smaller number." (From the help for the "Set Number of Threads.vi" in the toolkit)
It might be interesting to see if the problem happens after setting the number of threads to a smaller number using that sub VI. There's a basic example in that white paper showing how to set the threads using that function.
12-08-2015 11:33 AM
These are reasonable guidelines and I always follow them. SImilarly, I always only parallelize the outermost FOR loop in a stack, etc.
Here we never run two parallel things in parallel, the sequence structure isolates them just fine.
Yes, I could limit the number of parallel threads, but I would expect LabVIEW to never allocate more than it can swallow, even using the default settings, so there is probably a bug somewhere. Do you think you could generate a CAR?
I'll do some testing later.
12-08-2015 01:19 PM - edited 12-08-2015 01:19 PM
OK, a few more datapoints:
12-09-2015 08:57 AM
Hi altenbach,
I'm working on filing a CAR. Could tell me what version of LabVIEW and Windows you are using?
12-09-2015 09:29 AM
Thanks. This is LabVIEW 2015 (with all patches) and Windows 10 pro (with all patches).
12-09-2015 12:21 PM
Hi altenbach,
I've submitted the CAR, with request number is #561161.
09-16-2022 03:55 AM
Did this ever get resolved Christian?
I'm getting an OMP error when I run my code (which works fine) on a system with more that 64 logical processors, but when the 80 logical processor system is limited (at boot) to only have 64, I don't have an issue.
I've got big data, matrix functions, lots of parallelisation and MASM functions (running in parallel) but I always limit MASM to 1 thread for Linear Algebra and & 1 thread for Transformation.
(Using MASM AxB.vi too)
I'm thinking my issue might be related in LV 2018.
Cheers
James