OMP: Warning #181: OMP_STACKSIZE: ignored because KMP_STACKSIZE has been defined

30 views (last 30 days)
I'm using Matlab R2018b and just got an additional dos window with this sentence.
"OMP: Warning #181: OMP_STACKSIZE: ignored because KMP_STACKSIZE has been defined"
Matlab is working finely so far although it has this warning window. How can I remove this warning and close annoying window?

Accepted Answer

Pruthvi Muppavarapu
Pruthvi Muppavarapu on 13 Mar 2019
Try launching MATLAB from the default directory (for example, on Windows being C:\Program Files\MATLAB\R2015b\bin\matlab.exe).
If the error still occurs when launching MATLAB from this location, check for an environment variable named "KMP_STACKSIZE=xxx". If it exists (note its value in case you must replace it) and then remove this variable. You can check environment variables by performing the following steps:
1. In the Start Menu search area, type in "Environment" and hit enter. This will open the System Properties dialog under the "Advanced" tab.
2. Click on the "Environment Variables..." button, this will open the Environment Variables dialog. You can now edit both "System variables" as well as "User variables."
3. If the "KMP_STACKSIZE=xxx" variable exists, please remove it and attempt to start MATLAB.
Hope this resolves the issue.
NOTE: If the issue still persists, contact Mathworks Technical Support team:
  3 Comments
Peter Vella
Peter Vella on 11 Jun 2020
Worked for me as well. I removed the system variable OMP_STACKSIZE = 1G;
Thanks

Sign in to comment.

More Answers (1)

KAN ZHENG
KAN ZHENG on 7 Mar 2019
Hello, I have a trouble the same with you? I am using Matlab 2015b.
Do you have already get the method to solve this peoblem?
This peoblem can break down the whole matlab processing, and things go too bad !

Categories

Find more on Function Creation in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!