From: Andreas K. <li...@in...> - 2023-01-17 20:39:40
|
Pekka Jääskeläinen (TAU) <pek...@tu...> writes: > Hi Noah, > > I'm not aware of anyone implementing this on pocl-cuda. It might be not a lot of work to do so. Here's the cl_mem's internal pointer array: https://github.com/pocl/pocl/blob/master/lib/CL/pocl_cl.h#L1409 > > A clean implementation would be to define an OpenCL extension which > allows one to query the device pointer. Strictly put the device > pointer might be there or might not since lazy/just-in-time buffer > allocation is allowed in OpenCL, but it should work for pocl-cuda, I > think. Matthias Diener's work towards shared virtual memory with pocl-cuda may also be of interest. https://github.com/pocl/pocl/pull/1067 Note that that PR needs some work, as I point out on Github. Andreas -- |