<div dir="ltr">Hi,<div><br></div><div>I have Skylake (and Broadwell) <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">CPU</span> and I am running <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">beignet 1.3 platform.</span> I have checked that device capabilities has CL_DEVICE_SVM_FINE_GRAIN_BUFFER flag.</div><div><br></div><div>Following code gives CL_INVALID_VALUE. Even removing <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">CL_MEM_SVM_ATOMICS does not help. What could be wrong with the code? Additionally, how to the same SVM reservation by OpenCL C++ bindings (cl2.hpp)?</span></div><div><br></div><div>size_t SVM_size = 42;    <br></div><div><div>    </div><div>void* p = clSVMAlloc (</div><div>context(),      </div><div>CL_MEM_READ_WRITE | CL_MEM_SVM_FINE_GRAIN_BUFFER | CL_MEM_SVM_ATOMICS,</div><div>SVM_size,</div><div>0);</div><div><br></div><div>cl_int err = clEnqueueSVMMap(queue(), CL_TRUE, CL_MAP_READ | CL_MAP_WRITE, p, SVM_size, 0, NULL, NULL);<br></div></div><div><br></div><div>Thanks</div></div>