<?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: Python example code? in Intel® Graphics Performance Analyzers (Intel® GPA)</title>
    <link>https://community.intel.com/t5/Intel-Graphics-Performance/Python-example-code/m-p/1207752#M1999</link>
    <description>&lt;P&gt;ktB,&lt;/P&gt;
&lt;P&gt;It's great to know we have Python customers!! Thanks for the suggestion. We will have samples in the future.&lt;/P&gt;
&lt;P&gt;We don't have any samples yet because we do not yet support the full Python API. This may also be what is causing your issue.&lt;/P&gt;
&lt;P&gt;Pamela&lt;/P&gt;</description>
    <pubDate>Wed, 09 Sep 2020 00:39:21 GMT</pubDate>
    <dc:creator>Pamela_H_Intel</dc:creator>
    <dc:date>2020-09-09T00:39:21Z</dc:date>
    <item>
      <title>Python example code?</title>
      <link>https://community.intel.com/t5/Intel-Graphics-Performance/Python-example-code/m-p/1201540#M1991</link>
      <description>&lt;P&gt;Is there example code using the Python API?&amp;nbsp; I'm trying to convert the C++ sample code to python but am having trouble.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, when trying to convert the ApiLog example, the code just stops at the scan_for_ranges() call with "Process finished with exit code -1073741819 (0xC0000005)".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;streamObj = GPA.open_stream('... my stream folder ...')
apiLog = GPA.ApiLog(streamObj)
rangeCount = apiLog.scan_for_ranges()
frameIndex = int(rangeCount * 0.5)
print(frameIndex)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The C++ example runs fine so I don't think the problem is the stream folder.&amp;nbsp; Using Python 3.7.&lt;/P&gt;
&lt;P&gt;I'm sure I'll run into other issues so some working python examples would be helpful.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 07:17:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Graphics-Performance/Python-example-code/m-p/1201540#M1991</guid>
      <dc:creator>ktB</dc:creator>
      <dc:date>2020-08-19T07:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Python example code?</title>
      <link>https://community.intel.com/t5/Intel-Graphics-Performance/Python-example-code/m-p/1207752#M1999</link>
      <description>&lt;P&gt;ktB,&lt;/P&gt;
&lt;P&gt;It's great to know we have Python customers!! Thanks for the suggestion. We will have samples in the future.&lt;/P&gt;
&lt;P&gt;We don't have any samples yet because we do not yet support the full Python API. This may also be what is causing your issue.&lt;/P&gt;
&lt;P&gt;Pamela&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 00:39:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Graphics-Performance/Python-example-code/m-p/1207752#M1999</guid>
      <dc:creator>Pamela_H_Intel</dc:creator>
      <dc:date>2020-09-09T00:39:21Z</dc:date>
    </item>
  </channel>
</rss>

