KhronosGroup / KhronosGroup/OpenCL-Docs

clEnqueueReadBuffer on SVM Created Buffer

Open
#1,445 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
420
Forks
131
Avg merge
5d 13h
Merged PRs (30d)
11

Description

If a SVM object is created and then `clCreateBuffer` is called with `CL_MEM_USE_HOST_PTR` on that SVM object, will all calls to `clEnqueueReadBuffer` act as `clEnqueueSVMMap` with `CL_MAP_READ`? And will `clEnqueueMapBuffer` act like `clEnqueueSVMMap` on the underlying SVM pointer?

EDIT:
Added clEnqueueMapBuffer

Contributor guide

Open the contributing guide

Research direction

Start with the documented semantics of clCreateBuffer with CL_MEM_USE_HOST_PTR when the host pointer is an SVM allocation. Compare clEnqueueReadBuffer and clEnqueueMapBuffer with clEnqueueSVMMap, and finish by documenting a clear answer for both behaviors.

Written by the indexing model from the issue text.

Assessment

Domain
api, documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.