<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated on Sat, 26 May 2012 03:51:57 -0700 -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <atom:link href="http://software.intel.com/en-us/articles/intel-parallel-amplifier-kb/type/landing-links/feed/" rel="self" type="application/rss+xml" />
    <title>Intel Software Network articles Feed</title>
    <link>http://software.intel.com/en-us/articles/intel-parallel-amplifier-kb/type/landing-links/</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>&amp;#34;Attach debugger?&amp;#34; Message</title>
      <description><![CDATA[ <strong>Problem :<br /></strong>After running an VTune™ Amplifier XE 2011 data analysis from within Microsoft* Visual Studio*, you may see a dialog box with the caption "<strong>Attach debugger?</strong>" and the message<br /><br /><strong>&lt;type 'exceptions.ImportError'&gt; No module name pythonhelpers1 &lt;string&gt;(1): &lt;module&gt;</strong><br /><br /><img src="http://software.intel.com/file/32221" alt="AXE+python+error.PNG" title="AXE+python+error.PNG" /><br /><br />Pressing Yes or No usually results in the display of the collected data.  Sometimes the dialog is NOT displayed and in those cases the data may not be displayed.<br /><br />
<div id="art_pre_template"><b> </b><br /><b>Environment : </b><br />Microsoft* Windows*<br /><br /><b>Root Cause : </b><br />There is a compatibility issue with the current releases of Intel® Parallel Amplifier 2011 and VTune Amplifier XE.  Both tools use different versions of a DLL and the version used by Parallel Amplifier is not compatible with VTune Amplifier XE.  If that version is loaded by Visual Studio, VTune Amplifier XE cannot load the newer version of the DLL, which is required for correct operation.<br /><br /><b>Resolution : </b><br />Until a fix is available, closing down Visual Studio*, restarting it, and using VTune Amplifier XE prior to any other activity should resolve the issue for the duration of the Visual Studio invocation.  The problem arises when Parallel Amplifier functionality is used prior to VTune Amplifier XE in the same Visual Studio session.<br /><br /></div> ]]></description>
      <link>http://software.intel.com/en-us/articles/attach-debugger-message/</link>
      <pubDate>Sun, 21 Nov 2010 21:00:00 -0800</pubDate>
      <comments>http://software.intel.com/en-us/articles/attach-debugger-message/#comments</comments>
      <guid isPermaLink="true">http://software.intel.com/en-us/articles/attach-debugger-message/</guid>
      <category>Intel® Parallel Amplifier Knowledge Base</category>
      <category>Intel® VTune™ Amplifier XE Knowledge Base</category>
    </item>
    <item>
      <title>Intel® Parallel Amplifier Under the Hood</title>
      <description><![CDATA[ Intel® Parallel Amplifier’s three analysis types are designed to each give you insight into different aspects of your program’s performance. Each level of analysis collects additional information. Here’s how it works.<br /><br /><span class="sectionHeading">Hotspots</span><br /><span class="sectionBodyText"><br />The first type of analysis, <i>Hotspots</i>, is the most lightweight. Running it only takes about as much time as it takes to run your application normally (outside of Intel® Parallel Amplifier). While your app executes, Intel Parallel Amplifier’s data collector will periodically take samples. For each sample, the collector cooperates with the operating system to interrupt your program and gather data. It records the instruction pointer (IP) for each CPU core that is executing your app, as well as the call stack (saved as part of the O/S’s data structures). Once your application finishes executing, Intel Parallel Amplifier takes all of the IP samples and uses them to figure out how long each function was executing, and it uses all of the call stack samples to create a Call Tree for the whole program. In order to create the hotspots list and the call tree, Intel Parallel Amplifier also uses information about your program’s data and instruction space stored in its program debug database (.pdb file). <br /></span><br /><span class="sectionHeading">Concurrency</span><br /><br />The second type of analysis, <i>Concurrency</i>, works in the same way but collects a bit more information. It also records data on the status of each of the application’s threads – running, ready to run, and blocked. Once all the samples have been collected, Intel Parallel Amplifier analyzes the data to determine the percentage of time your application’s threads were active. This is called the <i>Concurrency Level</i>, and it is broken down per function. Ideally, the concurrency level for your app should match the number of processors on the system – this is what Intel Parallel Amplifier calls <i>Fully Utilized</i>.<br /><br /><span class="sectionHeading">Locks and Waits</span><br /><br />The last type of analysis is called <i>Locks and Waits</i>, and it is the most processor intensive. Your application may take longer to run under Locks and Waits analysis, and here’s why. In addition to collecting the data above, Intel Parallel Amplifier will add instructions to your compiled program. These instructions are placed wherever your program uses threading and synchronization API calls, and their purpose is to measure the wait times elapsed whenever a thread is not active. This timing information is combined with symbol information found in the .pdb file to create a picture of where your application is waiting, and what it is waiting on. Locks and other structures which might cause threads to wait are called <i>Synchronization Objects</i>. After running this analysis Intel Parallel Amplifier will show you a list of these objects along with the wait time for each and the concurrency of your app during the wait.<br /> ]]></description>
      <link>http://software.intel.com/en-us/articles/parallel-amplifier-under-the-hood/</link>
      <pubDate>Wed, 01 Sep 2010 21:00:00 -0700</pubDate>
      <comments>http://software.intel.com/en-us/articles/parallel-amplifier-under-the-hood/#comments</comments>
      <guid isPermaLink="true">http://software.intel.com/en-us/articles/parallel-amplifier-under-the-hood/</guid>
      <category>Parallel Programming</category>
      <category>Tools</category>
      <category>Intel® Parallel Amplifier Knowledge Base</category>
    </item>
    <item>
      <title>How to use Intel(R) Parallel Amplifier with application compiled with symbols but source files are not available</title>
      <description><![CDATA[ <p>Some users have an EXE file and related DLL files (with corresponding PDB files), but have no sources for EXE or DLLs. Can they use Intel(R) Parallel Amplifier in this situation?</p>
<p>Yes! The Intel(R) Parallel Amplifier is supported on Microsoft* Visual Studio* 2005/2008 - the user should create .sln file, .vcproject file in Solution Explorer.</p>
<p>1. Use wizard to create a new project for existing code</p>
<p>2. Specify project file location and project file name (it could be same as your EXE file)</p>
<p>3. Add existing item (EXE file) to current project</p>
<p>4. Manually create "Debug" folder under project file location.</p>
<p>5. Manually copy all EXE/DLL files and PDB files to the "Debug" folder</p>
<p>6. Ensure that you can run "Debug\Start Without Debugging" in Microsoft* Visual Studio*, then you can run Intel(R)Parallel Amplifier.</p> ]]></description>
      <link>http://software.intel.com/en-us/articles/how-to-use-amplifier-with-application-compiled-with-symbols-but-source-files-are-not-available/</link>
      <pubDate>Wed, 01 Sep 2010 21:00:00 -0700</pubDate>
      <comments>http://software.intel.com/en-us/articles/how-to-use-amplifier-with-application-compiled-with-symbols-but-source-files-are-not-available/#comments</comments>
      <guid isPermaLink="true">http://software.intel.com/en-us/articles/how-to-use-amplifier-with-application-compiled-with-symbols-but-source-files-are-not-available/</guid>
      <category>Parallel Programming</category>
      <category>Tools</category>
      <category>Intel® Parallel Amplifier Knowledge Base</category>
    </item>
    <item>
      <title>How to analyze a portion of your application</title>
      <description><![CDATA[ Sometimes, you only want to profile a portion of your application's run time.  For example, you may not want to profile the startup phase or the shutdown phase.  This article will describe how to use the Intel® Parallel Amplifer in such a situation.<br /><br />As an example, we will demonstrate using the <i>matrix </i>example included with the Parallel Amplifier.  Let's assume we only want to profile <i>algorithm_3()</i> for Concurrency and not <i>algorithm_1()</i> or <i>algorithm_2()</i>.  We know from the program's structure that these three routines are called sequentially, <i>algorithm_1()</i>, then <i>algorithm_2()</i>, then <i>algorithm_3()</i>.  This is similar to an application where we don't care about the startup phase and only want to analyze the main purpose of the application, e.g., <i>algorithm_3()</i>.<br /><br />When the example was run on a dual core system, the following results were obtained:<br /><br /><a href="http://software.intel.comjavascript:void(0)" onclick="function onclick() { ndownload('http://software.intel.com/file/14927') }"></a><img src="http://software.intel.com/file/15305" alt="matrix_timings.JPG" title="matrix_timings.JPG" /><br /><br />Based on the timing information, approximately 2 seconds is consumed by <i>algorithm_1() </i>and <i>algorithm_2()</i>, when added together (e.g., 0.58+1.55 seconds).<br /><br />The Parallel Amplifier provides a configuration setting that allows you to delay data collection.  Access this setting in one of two ways:<br /> 
<ul>
<li>From the <b>Project</b> menu, select <b>Intel Parallel Amplifier Project properties</b> (see Figure A), or</li>
<li>Right-click on the project in the Solution Explorer and select Intel Parallel Amplifier, and then Project Properties (see Figure B)</li>
</ul>
<img src="http://software.intel.com/file/15516" alt="accessing_props_2.JPG" title="accessing_props_2.JPG" /><br /><br />Then, under <b>Collection</b>, check the <b>Start data collection paused </b>and <b>Resume collection after, sec.</b>, as below.<br /><br /><img src="http://software.intel.com/file/15376" alt="amplifier_settings-1.JPG" title="amplifier_settings-1.JPG" /><br /><br />Now, if we run the Amplifer on our application, we see results similar to the following:<br /><br /><img src="http://software.intel.com/file/15325" alt="first_try-1.JPG" title="first_try-1.JPG" /><br /><br />We still captured some time in algorithm_2() - almost a full second.  Obviously, the next step is to increase the resume time to 3 seconds and re-run the analysis.  The results follow:<br /><br /><img src="http://software.intel.com/file/15326" alt="second_try-1.JPG" title="second_try-1.JPG" /><br /><br /><br />Alternately, use the GUI to pause or resume data collection at any time after the application is launched.  You can control when data is collected using this method, at a coarse granularity.<br /><br />Either check or uncheck the <b>Start data collection paused </b>option, depending on if you want to collect data at the start of your application or not.  Then, during execution of the application, press the <b>Continue </b>button to resume data collection...<br /><br /><img src="http://software.intel.com/file/15468" alt="tb_resume.JPG" title="tb_resume.JPG" /><br /><br />And the <b>Pause </b>button to pause data collection.<br /><br /><img src="http://software.intel.com/file/15467" alt="tb_pause.JPG" title="tb_pause.JPG" />
<p> </p> ]]></description>
      <link>http://software.intel.com/en-us/articles/how-to-analyze-a-portion-of-your-application/</link>
      <pubDate>Thu, 12 Mar 2009 21:00:00 -0700</pubDate>
      <comments>http://software.intel.com/en-us/articles/how-to-analyze-a-portion-of-your-application/#comments</comments>
      <guid isPermaLink="true">http://software.intel.com/en-us/articles/how-to-analyze-a-portion-of-your-application/</guid>
      <category>Intel® Parallel Amplifier Knowledge Base</category>
    </item>
    <item>
      <title>How to analyze an application without having a Visual Studio* project</title>
      <description><![CDATA[ <p>Intel® Parallel Amplifier and Intel® Parallel Inspector are fully integrated applications within Microsoft Visual Studio* and so require a Visual Studio project to store the configuration needed for testing.  So how do you use the Amplifier or Inspector on an application for which you only have the binary files?</p>
<p>There are two ways to create an Amplifier or Inspector analysis project when all you have is the .exe and associated .dlls.  The first uses a command prompt window. Within the command prompt window, type a command similar to the following:</p>
<p ><i>devenv /debugexe MyApplication.exe --app-param1 value1 --app-switch1</i></p>
<p>This command will start the Visual Studio IDE, create a project for <i>MyApplication.exe</i> application and set the application's options.  Next, right-click the project in the Visual Studio Solution Explorer or find the tool bar and start Amplifier or Inspector as usual. The results will be stored in <b>My Amplifier</b> or <b>Inspector Results </b>directory, which is created near the executable. You can override where the results are stored in preferences and target them to a specific directory.</p>
<p>The second method utilizes the Visual Studio environment.  Start Visual Studio and create a solution based on a single executable file: File -&gt; Open -&gt; Project/Solution.<br /><br /><img src="http://software.intel.com/file/14482" alt="OpenProject.JPG" title="OpenProject.JPG" /><br /><br />Select your .exe file. A solution with the same name as the .exe file is created.  Save the solution, then right-click the project in the Visual Studio Solution Explorer or find the tool bar and start Amplifier or Inspector as usual.</p> ]]></description>
      <link>http://software.intel.com/en-us/articles/analyze-application-without-having-vs-project/</link>
      <pubDate>Sat, 28 Feb 2009 21:00:00 -0800</pubDate>
      <comments>http://software.intel.com/en-us/articles/analyze-application-without-having-vs-project/#comments</comments>
      <guid isPermaLink="true">http://software.intel.com/en-us/articles/analyze-application-without-having-vs-project/</guid>
      <category>Tools</category>
      <category>Intel® Parallel Amplifier Knowledge Base</category>
      <category>Intel® Parallel Inspector Knowledge Base</category>
    </item>
  </channel></rss>
