<?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 Some questions: in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/SVM-Trouble/m-p/1072018#M4473</link>
    <description>&lt;P&gt;Some questions:&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;Which processor are you running on?&lt;/LI&gt;
	&lt;LI&gt;Are you running a recent graphics driver? &amp;nbsp;(You can compare your version with what is available at downloadcenter.intel.com.)&amp;nbsp;&lt;/LI&gt;
	&lt;LI&gt;Are you able to run SVM code, such as this sample? &amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/opencl-20-shared-virtual-memory-code-sample" style="font-size: 1em;"&gt;https://software.intel.com/en-us/articles/opencl-20-shared-virtual-memory-code-sample&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;The SVM sample uses a similar structure:&lt;/P&gt;

&lt;PRE class="brush:;"&gt;typedef struct _Element
{
    global float* internal; //points to the "value" of another Element from the same array
    global float* external; //points to the entry in a separate array of floating-point values
    float value;
} Element;
&lt;/PRE&gt;

&lt;P&gt;If you modify the sample to use your structure are you able to reproduce the behavior you're seeing?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2017 06:05:04 GMT</pubDate>
    <dc:creator>Jeffrey_M_Intel1</dc:creator>
    <dc:date>2017-01-19T06:05:04Z</dc:date>
    <item>
      <title>SVM Trouble</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/SVM-Trouble/m-p/1072017#M4472</link>
      <description>&lt;P style="font-size: 13.008px;"&gt;Hello, everyone!&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;I've some problem with Shared Virtual Memory and its buffers.&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;I've got structure like this:&lt;/P&gt;

&lt;PRE class="brush:cpp;" style="font-size: 13.008px;"&gt;typedef struct ListOfPtr ListOfPtr;
struct ListOfPtr
{
	cl_int		some_value;
	ListOfPtr	*first;
	ListOfPtr	*last;
	ListOfPtr	*next;
	ListOfPtr	*prev;
};&lt;/PRE&gt;

&lt;P style="font-size: 13.008px;"&gt;I declared a pointer of ListOfPtr type.&lt;/P&gt;

&lt;PRE class="brush:cpp;" style="font-size: 13.008px;"&gt;ListOfPtr *list = (ListOfPtr *)calloc(1, sizeof(ListOfPtr));&lt;/PRE&gt;

&lt;P style="font-size: 13.008px;"&gt;Then I get platform IDs, device IDs, creating a context and command queue...&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Now I try to declare a pointer of SVM buffer:&lt;/P&gt;

&lt;PRE class="brush:cpp;" style="font-size: 13.008px;"&gt;ListOfPtr *list = (ListOfPtr *)clSVMAlloc(my_context, CL_MEM_READ_WRITE, sizeof(ListOfPtr) * 6, 0);&lt;/PRE&gt;

&lt;P style="font-size: 13.008px;"&gt;But something is going wromg and I've got error: Unable&amp;nbsp;exception at 0x00000000 in MyCLProject.exe: 0xC0000005: Access Violation in the performance at 0x00000000.&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Is there any solution of this problem?&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;P.S.: According to&amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/opencl-20-shared-virtual-memory-overview"&gt;this&lt;/A&gt;&amp;nbsp;my device has SVM support.&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 11:14:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/SVM-Trouble/m-p/1072017#M4472</guid>
      <dc:creator>Alexander_M_4</dc:creator>
      <dc:date>2017-01-17T11:14:04Z</dc:date>
    </item>
    <item>
      <title>Some questions:</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/SVM-Trouble/m-p/1072018#M4473</link>
      <description>&lt;P&gt;Some questions:&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;Which processor are you running on?&lt;/LI&gt;
	&lt;LI&gt;Are you running a recent graphics driver? &amp;nbsp;(You can compare your version with what is available at downloadcenter.intel.com.)&amp;nbsp;&lt;/LI&gt;
	&lt;LI&gt;Are you able to run SVM code, such as this sample? &amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/opencl-20-shared-virtual-memory-code-sample" style="font-size: 1em;"&gt;https://software.intel.com/en-us/articles/opencl-20-shared-virtual-memory-code-sample&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;The SVM sample uses a similar structure:&lt;/P&gt;

&lt;PRE class="brush:;"&gt;typedef struct _Element
{
    global float* internal; //points to the "value" of another Element from the same array
    global float* external; //points to the entry in a separate array of floating-point values
    float value;
} Element;
&lt;/PRE&gt;

&lt;P&gt;If you modify the sample to use your structure are you able to reproduce the behavior you're seeing?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 06:05:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/SVM-Trouble/m-p/1072018#M4473</guid>
      <dc:creator>Jeffrey_M_Intel1</dc:creator>
      <dc:date>2017-01-19T06:05:04Z</dc:date>
    </item>
  </channel>
</rss>

