<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Getting VTune Profiler to open the executable in a separate terminal in Linux Ubuntu in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Getting-VTune-Profiler-to-open-the-executable-in-a-separate/m-p/1457870#M23009</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;
&lt;P&gt;int main() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (size_t i = 0; i &amp;lt; 100000; i++)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("%d ", i);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(i == 10)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; getchar();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When this app is built and profiled in Windows with Visual Studio IDE integration, clicking on the start button within VTune opens a console window where I am able to see the printing of the numbers including waiting for user input from the getchar(); command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am unable to get this similar functionality in Ubuntu. I open VTune profiler via running the following script in Ubuntu:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;source "/opt/intel/oneapi/vtune/latest/env/vars.sh" &amp;amp;&amp;amp; vtune-gui --project-path "/home/TryerGit/GoogleDrive/research_programming/debugtesting/VTune/vtune" --app-path "/home/TryerGit/GoogleDrive/research_programming/debugtesting/VTune/.vscode/dist/Release/GNU-Linux/linux"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After this, VTune app opens up but when the Start profiling button is pressed, where exactly can one interact with the executable? Where, for e.g., would the printf statements go and where can one press a character in response to getchar();?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2023 11:47:17 GMT</pubDate>
    <dc:creator>TryerGit</dc:creator>
    <dc:date>2023-02-21T11:47:17Z</dc:date>
    <item>
      <title>Getting VTune Profiler to open the executable in a separate terminal in Linux Ubuntu</title>
      <link>https://community.intel.com/t5/Analyzers/Getting-VTune-Profiler-to-open-the-executable-in-a-separate/m-p/1457870#M23009</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;
&lt;P&gt;int main() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (size_t i = 0; i &amp;lt; 100000; i++)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("%d ", i);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(i == 10)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; getchar();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When this app is built and profiled in Windows with Visual Studio IDE integration, clicking on the start button within VTune opens a console window where I am able to see the printing of the numbers including waiting for user input from the getchar(); command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am unable to get this similar functionality in Ubuntu. I open VTune profiler via running the following script in Ubuntu:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;source "/opt/intel/oneapi/vtune/latest/env/vars.sh" &amp;amp;&amp;amp; vtune-gui --project-path "/home/TryerGit/GoogleDrive/research_programming/debugtesting/VTune/vtune" --app-path "/home/TryerGit/GoogleDrive/research_programming/debugtesting/VTune/.vscode/dist/Release/GNU-Linux/linux"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After this, VTune app opens up but when the Start profiling button is pressed, where exactly can one interact with the executable? Where, for e.g., would the printf statements go and where can one press a character in response to getchar();?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 11:47:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Getting-VTune-Profiler-to-open-the-executable-in-a-separate/m-p/1457870#M23009</guid>
      <dc:creator>TryerGit</dc:creator>
      <dc:date>2023-02-21T11:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting VTune Profiler to open the executable in a separate terminal in Linux Ubuntu</title>
      <link>https://community.intel.com/t5/Analyzers/Getting-VTune-Profiler-to-open-the-executable-in-a-separate/m-p/1458661#M23022</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good day to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We were able to replicate the issue that you mentioned from our side. We are checking with the internal team to find a solution to this. Intel VTune used to print the output of the program directly to the terminal window from which GUI is loaded while profiling an application. This seems to be bug and we are working to get a possible fix. Thanks for reporting the same.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively as a workaround solution, we recommend using the VTune CLI to perform analysis of interactive applications rather than using the GUI for Linux. The results can later be opened inside VTune to view them. The steps to get the corresponding CLI command for any GUI equivalent configuration is given below:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open VTune GUI from the Linux terminal window by running the below commands:&lt;BR /&gt;&lt;LI-CODE lang="bash"&gt;source /opt/intel/oneapi/setvars.sh
vtune-gui​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Configure the analysis like you typically do in the &lt;EM&gt;WHERE&lt;/EM&gt;, &lt;EM&gt;WHAT&lt;/EM&gt; and &lt;EM&gt;HOW&lt;/EM&gt; sections.&lt;/LI&gt;
&lt;LI&gt;Once all analysis configurations are selected, instead of starting the analysis, click on the &lt;STRONG&gt;Command Line&lt;/STRONG&gt; button &lt;EM&gt;(Refer attached screenshot)&lt;/EM&gt; at the bottom of the GUI to get the equivalent CLI command. Copy the command by clicking the &lt;STRONG&gt;Copy&lt;/STRONG&gt; button from the dialog box.&lt;/LI&gt;
&lt;LI&gt;Close Intel VTune Profiler GUI and run the copied command in the terminal window. The output of the application is printed directly to the terminal window and can accept user inputs and display output during the run.&lt;/LI&gt;
&lt;LI&gt;Once the analysis is done, the results will be generated.&lt;/LI&gt;
&lt;LI&gt;Then open VTune GUI again by running the &lt;STRONG&gt;vtune-gui&lt;/STRONG&gt; command.&lt;/LI&gt;
&lt;LI&gt;Click the &lt;STRONG&gt;Open Results&lt;/STRONG&gt; button &lt;EM&gt;(Refer attached screenshot)&lt;/EM&gt; to navigate to the directory where the analysis results were generated and choose the &lt;STRONG&gt;&lt;EM&gt;*.vtune&lt;/EM&gt;&lt;/STRONG&gt; present in that directory to view the corresponding results in VTune GUI&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the inconvenience caused. We will get back to you with an update fix soon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do get back to us if you face any issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Jyothis V James&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 14:57:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Getting-VTune-Profiler-to-open-the-executable-in-a-separate/m-p/1458661#M23022</guid>
      <dc:creator>JyothisV_Intel</dc:creator>
      <dc:date>2023-02-23T14:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting VTune Profiler to open the executable in a separate terminal in Linux Ubuntu</title>
      <link>https://community.intel.com/t5/Analyzers/Getting-VTune-Profiler-to-open-the-executable-in-a-separate/m-p/1459284#M23032</link>
      <description>&lt;P&gt;Thanks. Your suggestion works. Please do push a bug fix.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2023 03:24:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Getting-VTune-Profiler-to-open-the-executable-in-a-separate/m-p/1459284#M23032</guid>
      <dc:creator>TryerGit</dc:creator>
      <dc:date>2023-02-25T03:24:58Z</dc:date>
    </item>
    <item>
      <title>Re:Getting VTune Profiler to open the executable in a separate terminal in Linux Ubuntu</title>
      <link>https://community.intel.com/t5/Analyzers/Getting-VTune-Profiler-to-open-the-executable-in-a-separate/m-p/1471833#M23233</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Good day to you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for confirming the same.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have escalated this issue to the development team, and they are working on a fix shortly. We will get back to you when it is fixed.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Jyothis V James&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Mar 2023 08:14:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Getting-VTune-Profiler-to-open-the-executable-in-a-separate/m-p/1471833#M23233</guid>
      <dc:creator>JyothisV_Intel</dc:creator>
      <dc:date>2023-03-31T08:14:27Z</dc:date>
    </item>
  </channel>
</rss>

