<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Mr jiao's Groups Activities</title><link>https://community.arm.com/members/mr-jiao</link><description>Recent activity for people in Mr jiao's group</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>Ask A Question I</title><link>https://community.arm.com/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Thu, 05 Nov 2020 02:42:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:191163ae-ec16-48c1-a867-54608f8d7b02</guid><dc:creator /><description>Ask a question in a forum.</description></item><item><title>Mali G57  image object created from buffer through svm failed</title><link>https://community.arm.com/developer/tools-software/graphics/f/discussions/47982/mali-g57-image-object-created-from-buffer-through-svm-failed</link><pubDate>Thu, 05 Nov 2020 13:22:12 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:977ebfd4-b6ed-406b-bab8-ed1c836f4fda</guid><dc:creator>Mr jiao</dc:creator><description>&lt;p&gt;cl_image_format imageFormat;&lt;/p&gt;
&lt;p&gt;imageFormat.image_channel_data_type = CL_UNSIGNED_INT16;&lt;/p&gt;
&lt;p&gt;imageFormat.image_channel_order = CL_RGBA; // considering image with only single channel&lt;/p&gt;
&lt;p&gt;// Allocate SVM memory&lt;/p&gt;
&lt;p&gt;size_t imageSize = width * height * sizeof(cl_uchar);&lt;/p&gt;
&lt;p&gt;cl_uchar *&lt;strong&gt;imgSvmPtr&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;= (cl_uchar *)&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;clSVMAlloc&lt;/strong&gt;(context, CL_MEM_READ_WRITE, imageSize, 0);&lt;/p&gt;
&lt;p&gt;// Create a buffer object using the SVM memory&lt;/p&gt;
&lt;p&gt;cl_mem&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;svmImgBuffer&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;=&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;clCreateBuffer&lt;/strong&gt;(context,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;CL_MEM_USE_HOST_PTR&lt;/strong&gt;, imageSize,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;imgSvmPtr&lt;/strong&gt;, NULL);&lt;/p&gt;
&lt;p&gt;// Set the SVM buffer to image description parameter and set the other parameters accordingly&lt;/p&gt;
&lt;p&gt;cl_image_desc imageDesc;&lt;/p&gt;
&lt;p&gt;memset(&amp;amp;imageDesc, &amp;#39;\0&amp;#39;, sizeof(cl_image_desc));&lt;/p&gt;
&lt;p&gt;imageDesc.image_type = CL_MEM_OBJECT_IMAGE2D;&lt;/p&gt;
&lt;p&gt;imageDesc.image_width = width / 4;&lt;/p&gt;
&lt;p&gt;imageDesc.image_height = height;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;imageDesc.mem_object= svmImgBuffer;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;// Create 2D image, which will be used as input as well as output image&lt;/p&gt;
&lt;p&gt;cl_mem image2D = clCreateImage(context, CL_MEM_READ_WRITE, &amp;amp;imageFormat, &amp;amp;imageDesc, NULL, &amp;amp;status);&lt;/p&gt;
&lt;p&gt;status = -65,&amp;nbsp; I want to know why ? thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Community Help</title><link>https://community.arm.com/members/mr-jiao/activities/aab8135b-b206-429a-846d-bb011c3ccc45</link><pubDate>Mon, 22 Apr 2019 08:12:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:aab8135b-b206-429a-846d-bb011c3ccc45</guid><dc:creator>Arm Community</dc:creator><description>New to Arm Community? Start here to learn how to get the most out of it. Learn about Community enhancements, share ideas and ask questions.</description></item></channel></rss>