I've seen that error before. It was a long time back when I first started using MKL with Matlab. I'll see if I can track down what made it go away. That said, we have been using MKL with OMP_NUM_THREADS without a problem but we are running Xeons with HT and matlab 7SP1 and fedora core 2. Satra On Fri, 11 Mar 2005 12:04:30 +0000, John Ashburner <[log in to unmask]> wrote: > Jack and I narrowed down the problem to a few lines of MATLAB code > > === in bash === > export OMP_NUM_THREADS=2 > matlab -nojvm > > === in MATLAB === > n = 32; > A=zeros(n,n,n); > B=zeros(n,n,n); > C=zeros(n,n,n); > A(:,1,:) = B(:,:,1)*squeeze(C(:,1,:)); > > === Error message === > OMP abort: Unable to set worker thread stack size to 4195328 bytes > Try reducing KMP_STACKSIZE or increasing the shell stack limit. > > We contacted the MathWorks, who told us that the environment variable, > OMP_NUM_THREADS, is not officially supported for the Linux platform. It > should be set to 1 (or not set at all) in order to use MATLAB 7.0.4 (R14SP2) > without any thread related errors. > > Best regards, > -John