<?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 Re: Conditions for Python working/stack collection? in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Conditions-for-Python-working-stack-collection/m-p/1252300#M19935</link>
    <description>&lt;P&gt;Hi Nicholas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you provide us the below details&lt;/P&gt;
&lt;P&gt;1)Operating system&lt;/P&gt;
&lt;P&gt;2)Vtune analysis type you are running(please share the command line)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We tried vtune user based sampling on an ubuntu machine and the collection works without any issues for stock python(3.8.5). We used vtune 2021(oneapi gold release). We installed the python from anaconda channel. Below are the steps that did work for us&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;conda create –name pythonenv38

conda activate pythonenv38

conda install -c anaconda python=3.8

vtune -collect hotspots -- python samplecode.py

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try out python from anaconda channel and with oneapi gold version of vtune and see if this works for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2021 08:59:56 GMT</pubDate>
    <dc:creator>ArunJ_Intel</dc:creator>
    <dc:date>2021-02-02T08:59:56Z</dc:date>
    <item>
      <title>Conditions for Python working/stack collection?</title>
      <link>https://community.intel.com/t5/Analyzers/Conditions-for-Python-working-stack-collection/m-p/1252031#M19934</link>
      <description>&lt;P&gt;Over the past few years I've found the VTune support for mixed python/C++ profiling to be invaluable, but have had some frustration getting it running with more recent distributions of VTune and python.&lt;/P&gt;
&lt;P&gt;I normally launch via a bash script as the "Application" that sets up the environment, because we have quite a lot of environment variables set to point to various libraries, python paths to run our application. This mostly worked well with python 3.6 in VTune 2019.&lt;/P&gt;
&lt;P&gt;However, I have had significant problems getting things working with VTune 2020,21, for both 3.6 and &amp;gt;3.6, mainly version from conda-forge. All of 3.6+ either python throws SEGV (even with test files, so not coming from the application), or I get the &lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/troubleshooting/error-message-stack-size-is-too-small.html&amp;nbsp;" target="_self"&gt;"Stack size provided to sigaltstack is too small"&lt;/A&gt;&amp;nbsp;error. When I've attached with the --no-altstack knob I've sometimes gotten 3.6 to run in VTune 2020, but not managed to gather python call stacks. The only version higher than 3.6 I've ever gotten to work with VT2020+ is the IDP==3.7, which isn't what we normally run under and I'd prefer to profile on the version/build of python we actually use (mainly 3.8).&lt;/P&gt;
&lt;P&gt;What are the conditions under which this is supposed to work? The &lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/analyze-performance/code-profiling-scenarios/python-code-analysis.html&amp;nbsp;" target="_self"&gt;documentation&lt;/A&gt; describes the VTune python analysis as for "Python distributions of 2.6 and later".Are non-IDP distributions of python supposed to be supported? Does anyone have any suggestions on diagnostics/debugging to try, or am I likely using a Python compiled with some incompatible flags?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 18:32:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Conditions-for-Python-working-stack-collection/m-p/1252031#M19934</guid>
      <dc:creator>ndevenish</dc:creator>
      <dc:date>2021-02-01T18:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Conditions for Python working/stack collection?</title>
      <link>https://community.intel.com/t5/Analyzers/Conditions-for-Python-working-stack-collection/m-p/1252300#M19935</link>
      <description>&lt;P&gt;Hi Nicholas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you provide us the below details&lt;/P&gt;
&lt;P&gt;1)Operating system&lt;/P&gt;
&lt;P&gt;2)Vtune analysis type you are running(please share the command line)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We tried vtune user based sampling on an ubuntu machine and the collection works without any issues for stock python(3.8.5). We used vtune 2021(oneapi gold release). We installed the python from anaconda channel. Below are the steps that did work for us&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;conda create –name pythonenv38

conda activate pythonenv38

conda install -c anaconda python=3.8

vtune -collect hotspots -- python samplecode.py

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try out python from anaconda channel and with oneapi gold version of vtune and see if this works for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 08:59:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Conditions-for-Python-working-stack-collection/m-p/1252300#M19935</guid>
      <dc:creator>ArunJ_Intel</dc:creator>
      <dc:date>2021-02-02T08:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Conditions for Python working/stack collection?</title>
      <link>https://community.intel.com/t5/Analyzers/Conditions-for-Python-working-stack-collection/m-p/1252793#M19940</link>
      <description>&lt;P&gt;Hi Nicholas,&lt;/P&gt;
&lt;P&gt;This is Denis from VTune team. Thank you for contacting us with your problem. Let me outline the scope of VTune's Python code profiling support. VTune does support the stock python 3.8 and IDP 3.7 for Launch mode only. Attach mode may cause the problems. The User-Mode Hotspots, Threading and Memory Consumption analysis&amp;nbsp;are supported. You will not see Python user code if you run the Hardware event-based Hotspots analysis.&lt;/P&gt;
&lt;P&gt;I will repeat Arun's questions about the operating system you are using and the type of analysis. We recently fixed an issue with similar symptoms on CentOS 8.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 16:05:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Conditions-for-Python-working-stack-collection/m-p/1252793#M19940</guid>
      <dc:creator>Denis_P_Intel</dc:creator>
      <dc:date>2021-02-03T16:05:20Z</dc:date>
    </item>
    <item>
      <title>Re:Conditions for Python working/stack collection?</title>
      <link>https://community.intel.com/t5/Analyzers/Conditions-for-Python-working-stack-collection/m-p/1255955#M19996</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As we have not heard back from you for sometime now we assume your issue is resolved, we wouldn't be monitoring this thread further. Please raise a new thread in case of further issues.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arun Jose&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Feb 2021 04:05:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Conditions-for-Python-working-stack-collection/m-p/1255955#M19996</guid>
      <dc:creator>ArunJ_Intel</dc:creator>
      <dc:date>2021-02-15T04:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Conditions for Python working/stack collection?</title>
      <link>https://community.intel.com/t5/Analyzers/Conditions-for-Python-working-stack-collection/m-p/1256009#M19999</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Apologies - I hadn't managed to loop back round to this task yet. Knowing that it's&amp;nbsp;&lt;EM&gt;supposed&lt;/EM&gt; to work is the main thing - it means it's worth putting in the time to try and dissect what in my live environment is causing the problem.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 08:44:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Conditions-for-Python-working-stack-collection/m-p/1256009#M19999</guid>
      <dc:creator>ndevenish</dc:creator>
      <dc:date>2021-02-15T08:44:53Z</dc:date>
    </item>
  </channel>
</rss>

