Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Redistributable Package fix: High CPU usage when you run a Visual C++ 2010 application built together with the "/openmp" option enabled in Visual Studio 2010


View products that this article applies to.

Symptoms

Assume that you have a Visual C++ 2010 application that is developed in Microsoft Visual Studio 2010. The application uses the Open Multiprocessing (OpenMP) API to improve performance on a computer that has multiple processors. You build the application, and you use the /openmp compiler option. When you run the application, the application process might experience high CPU usage.

Note This issue does not occur in Microsoft Visual Studio 2008 or in Microsoft Visual Studio 2005.

↑ Back to the top


Cause

This issue occurs because the implementation of the OpenMP runtime (Vcomp100.dll) has a spin-wait loop in which the OpenMP threads look for work for a short time before they are yielded.

↑ Back to the top


Resolution

After you install the hotfix, you must create the OMP_WAIT_POLICY environment variable, and then set the value of the variable to PASSIVE.

Notes
  • If you set the value for OMP_WAIT_POLICY to ACTIVE, the OpenMP threads will spin-wait for a short time before blocking when the threads finish executing a workload.
  • If you set the value for OMP_WAIT_POLICY to PASSIVE, the OpenMP threads will immediately be blocked when the threads finish executing a workload.
  • The default value for OMP_WAIT_POLICY is ACTIVE.

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this hotfix, you must have Visual Studio 2010 Service Pack 1 (SP1) installed.

Restart requirement

You must restart the computer after you install the hotfix if the affected files are being used during the installation.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The global version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

For all supported x86-based versions of Microsoft Visual C++ 2010 SP1 Redistributable Package
File nameFile versionFile sizeDateTimePlatform
Atl100.dll10.0.40219.436138,80014-Dec-201206:35x86
Mfc100.dll10.0.40219.4364,400,68814-Dec-201206:35x86
Mfc100chs.dll10.0.40219.43636,91214-Dec-201206:35x86
Mfc100cht.dll10.0.40219.43636,91214-Dec-201206:35x86
Mfc100deu.dll10.0.40219.43665,09614-Dec-201206:35x86
Mfc100enu.dll10.0.40219.43655,88014-Dec-201206:35x86
Mfc100esn.dll10.0.40219.43664,56014-Dec-201206:35x86
Mfc100fra.dll10.0.40219.43665,07214-Dec-201206:35x86
Mfc100ita.dll10.0.40219.43663,04814-Dec-201206:35x86
Mfc100jpn.dll10.0.40219.43644,59214-Dec-201206:35x86
Mfc100kor.dll10.0.40219.43644,10414-Dec-201206:35x86
Mfc100rus.dll10.0.40219.43661,51214-Dec-201206:35x86
Mfc100u.dll10.0.40219.4364,425,77614-Dec-201206:35x86
Mfcm100.dll10.0.40219.43682,49614-Dec-201206:35x86
Mfcm100u.dll10.0.40219.43682,49614-Dec-201206:35x86
Msvcp100.dll10.0.40219.436421,93614-Dec-201206:35x86
Msvcr100_clr0400.dll10.0.40219.436774,19214-Dec-201206:35x86
Vcomp100.dll10.0.40219.43652,28814-Dec-201206:35x86
For all supported x64-based versions of Microsoft Visual C++ 2010 SP1 Redistributable Package
File nameFile versionFile sizeDateTimePlatform
Atl100.dll10.0.40219.436159,28014-Dec-201205:46x64
Mfc100.dll10.0.40219.4365,579,82414-Dec-201205:46x64
Mfc100chs.dll10.0.40219.43636,91214-Dec-201205:46x64
Mfc100cht.dll10.0.40219.43636,93614-Dec-201205:46x64
Mfc100deu.dll10.0.40219.43665,07214-Dec-201205:46x64
Mfc100enu.dll10.0.40219.43655,88014-Dec-201205:46x64
Mfc100esn.dll10.0.40219.43664,56014-Dec-201205:46x64
Mfc100fra.dll10.0.40219.43665,09614-Dec-201205:46x64
Mfc100ita.dll10.0.40219.43663,02414-Dec-201205:46x64
Mfc100jpn.dll10.0.40219.43644,59214-Dec-201205:46x64
Mfc100kor.dll10.0.40219.43644,08014-Dec-201205:46x64
Mfc100rus.dll10.0.40219.43661,48814-Dec-201205:46x64
Mfc100u.dll10.0.40219.4365,605,95214-Dec-201205:46x64
Mfcm100.dll10.0.40219.43693,74414-Dec-201205:46x64
Mfcm100u.dll10.0.40219.43693,74414-Dec-201205:46x64
Msvcp100.dll10.0.40219.436608,81614-Dec-201205:46x64
Msvcr100_clr0400.dll10.0.40219.436830,01614-Dec-201205:46x64
Vcomp100.dll10.0.40219.43658,94414-Dec-201205:46x64
For all supported IA-64-based versions of Microsoft Visual C++ 2010 SP1 Redistributable Package
File nameFile versionFile sizeDateTimePlatform
Atl100.dll10.0.40219.436386,09614-Dec-201206:07IA-64
Msvcp100.dll10.0.40219.436967,23214-Dec-201206:07IA-64
Msvcr100_clr0400.dll10.0.40219.4361,500,22414-Dec-201206:07IA-64
Vcomp100.dll10.0.40219.436144,44814-Dec-201206:07IA-64

↑ Back to the top


More Information

For more information about the OpenMP API in Visual Studio 2010, go to the following MSDN website:For more information about OpenMP in Visual C++, go to the following MSDN website:

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: kbseo, kbexpertiseadvanced, kbsurveynew, kbqfe, kbfix, kbhotfixserver, kb, kbhotfixdev

↑ Back to the top

Article Info
Article ID : 2689322
Revision : 1
Created on : 1/7/2017
Published on : 1/8/2013
Exists online : False
Views : 282