Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cl_ext_buffer_device_address #1159

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Commits on Sep 24, 2024

  1. cl_ext_buffer_device_address

    The basic cl_mem buffer API doesn't enable access to the underlying raw
    pointers in the device memory, preventing its use in host side
    data structures that need pointer references to objects.
    This API adds a minimal increment on top of cl_mem that provides such
    capabilities.
    
    The version 0.1.0 is implemented in PoCL and rusticl for prototyping,
    but everything's still up for discussion. chipStar is the first client
    that uses the API.
    pjaaskel committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    6c3323d View commit details
    Browse the repository at this point in the history
  2. Apply suggestions from code review

    Co-authored-by: Sun Serega <sunserega2@gmail.com>
    pjaaskel and SunSerega committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    6ae7260 View commit details
    Browse the repository at this point in the history
  3. cl_ext_buffer_device_address updates

    Changed the CL_MEM_DEVICE_ADDRESS_EXT wording for multi-device
    cases "all", not "any", covering a case where not all devices
    can ensure the same address across the context. In that case
    CL_INVALID_VALUE can be returned.  Defined sub-buffer address
    computation to be 'base_addr + origin'. Added error conditions
    for clSetKernelExecInfo when the device doesn't support
    device pointers.
    pjaaskel committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    6ec48c4 View commit details
    Browse the repository at this point in the history
  4. BDA: Made the allocation flags independent from each other

    ...and renamed them to CL_MEM_DEVICE_SHARED_ADDRESS_EXT and
    CL_MEM_DEVICE_PRIVATE_ADDRESS_EXT. The first one guarantees the
    same address across all devices in the context, whereas the latter
    allows per-device addresses.
    pjaaskel committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    1931416 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. Fixes from SunSerega

    pjaaskel committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    e9f1bbc View commit details
    Browse the repository at this point in the history