When using NMath in a multithreaded environment, my application terminates with the following error message:

OMP Run-time library: currently configured to support a maximum of 32 threads. OMP abort: Please specify a larger value via the KMP_ALL_THREADS environment variable to raise this limit.

This occurs even though I never have more than 32 threads active at one time.

This problem only occurs in older versions of NMath. If you have annual maintenance contract, you can upgrade to the latest code at no additional charge.

Alternatively, raise the limit specified by KMP_ALL_THREADS appropriately–for example, “set KMP_ALL_THREADS = 100”–or design your application to use the System.Threading.ThreadPool class which maintains a pool of worker threads, and has a default limit of 25 threads per available processor.

Top