<?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: High VmPeak when initializing OpenCL platofrm using clGetPlatformIDs on iMX8 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/High-VmPeak-when-initializing-OpenCL-platofrm-using/m-p/1554363#M197595</link>
    <description>&lt;P&gt;Hello I've replied above by mistake to my own thread instead of your comment. Please check^&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 01:55:23 GMT</pubDate>
    <dc:creator>adeesh_kale_bshg</dc:creator>
    <dc:date>2022-11-16T01:55:23Z</dc:date>
    <item>
      <title>High VmPeak when initializing OpenCL platofrm using clGetPlatformIDs on iMX8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/High-VmPeak-when-initializing-OpenCL-platofrm-using/m-p/1553776#M197554</link>
      <description>&lt;P&gt;When initializing platform, just the single call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;error = clGetPlatformIDs(1, &amp;amp;platform_id, nullptr);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;causes a VmPeak for my process of 209 MB!&lt;/P&gt;&lt;P&gt;Of course, the running memory is not high, but the initial peak is causing application to get killed by oom_reaper on startup.&lt;/P&gt;&lt;P&gt;Is this a known issue? Is this something that is to be expected?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 07:33:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/High-VmPeak-when-initializing-OpenCL-platofrm-using/m-p/1553776#M197554</guid>
      <dc:creator>adeesh_kale_bshg</dc:creator>
      <dc:date>2022-11-15T07:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: High VmPeak when initializing OpenCL platofrm using clGetPlatformIDs on iMX8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/High-VmPeak-when-initializing-OpenCL-platofrm-using/m-p/1554103#M197581</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Please send the complete log file and your test environment, also is this for MX8Mnano?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 13:26:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/High-VmPeak-when-initializing-OpenCL-platofrm-using/m-p/1554103#M197581</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2022-11-15T13:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: High VmPeak when initializing OpenCL platofrm using clGetPlatformIDs on iMX8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/High-VmPeak-when-initializing-OpenCL-platofrm-using/m-p/1554117#M197582</link>
      <description>&lt;P&gt;Yes this is for the MX8M Nano. Kernel 5.10. I can show a simple example that I ran to test:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;sys/stat.h&amp;gt;
#include &amp;lt;string.h&amp;gt;
#include &amp;lt;CL/cl.h&amp;gt;
#include &amp;lt;unistd.h&amp;gt;

int main(int argc, char *argv[])
{
    cl_platform_id pid = NULL;
    cl_int ret = clGetPlatformIDs(1, &amp;amp;pid, NULL);
    while (1)
        sleep(1);
    return 0;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if I run this code and do a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;$ cat /proc/&amp;lt;pid&amp;gt;/status&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I get:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Umask: 0022&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;State: S (sleeping)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Tgid: 274&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Ngid: 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Pid: 274&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;PPid: 273&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;TracerPid: 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Uid: 0 0 0 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Gid: 0 0 0 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FDSize: 64&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Groups: 0 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;NStgid: 274&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;NSpid: 274&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;NSpgid: 273&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;NSsid: 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;&lt;STRONG&gt;VmPeak: 197120 kB&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;&lt;STRONG&gt;VmSize: 131584 kB&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;VmLck: 0 kB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;VmPin: 0 kB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;VmHWM: 3972 kB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;VmRSS: 3972 kB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RssAnon: 1176 kB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RssFile: 2792 kB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;RssShmem: 4 kB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;VmData: 10820 kB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;VmStk: 132 kB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;VmExe: 4 kB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;VmLib: 21324 kB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;VmPTE: 132 kB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;VmSwap: 0 kB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CoreDumping: 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;THP_enabled: 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Threads: 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SigQ: 0/498&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SigPnd: 0000000000000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ShdPnd: 0000000000000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SigBlk: 0000000000000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SigIgn: 0000000000000004&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SigCgt: 0000000180000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CapInh: 0000000000000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CapPrm: 000001ffffffffff&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CapEff: 000001ffffffffff&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CapBnd: 000001ffffffffff&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;CapAmb: 0000000000000000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;NoNewPrivs: 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Seccomp: 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Seccomp_filters: 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Speculation_Store_Bypass: not vulnerable&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Cpus_allowed: 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Cpus_allowed_list: 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Mems_allowed: 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Mems_allowed_list: 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;voluntary_ctxt_switches: 129&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;nonvoluntary_ctxt_switches: 239&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Notice the Peak memory value&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 14:02:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/High-VmPeak-when-initializing-OpenCL-platofrm-using/m-p/1554117#M197582</guid>
      <dc:creator>adeesh_kale_bshg</dc:creator>
      <dc:date>2022-11-15T14:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: High VmPeak when initializing OpenCL platofrm using clGetPlatformIDs on iMX8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/High-VmPeak-when-initializing-OpenCL-platofrm-using/m-p/1554363#M197595</link>
      <description>&lt;P&gt;Hello I've replied above by mistake to my own thread instead of your comment. Please check^&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 01:55:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/High-VmPeak-when-initializing-OpenCL-platofrm-using/m-p/1554363#M197595</guid>
      <dc:creator>adeesh_kale_bshg</dc:creator>
      <dc:date>2022-11-16T01:55:23Z</dc:date>
    </item>
  </channel>
</rss>

