Skip to content

Project naming convention #330

Closed
Closed

Description

@PokhodenkoSA

We can see several names in different cases:

  • dpctl (package name)
  • dpCtl (documentation)
  • DPCTL (C++ code)

I propose to make it simple and use dpctl in all places.

Activity

  1. diptorupd commented on Mar 23, 2021

    @diptorupd
    Contributor

    Standardizing on dpctl is fine. Let us follow the GTK naming convention: All C API function names will use a dpctl_ prefix followed by a symbol name and words separated with _, e.g. dpctl_device_is_host. Structs should use Dpctl prefix and use CamelCase naming style. Macros will use DPCTL_ prefix and use underscore separated words in all caps.

    The problem might be we might end up with very long names.

  2. PokhodenkoSA commented on Mar 23, 2021

    @PokhodenkoSA
    ContributorAuthor

    I propose to be close to SYCL API style.

  3. diptorupd commented on Mar 31, 2021

    @diptorupd
    Contributor

    #342 changed all the places in docstrings, comments, license headers, etc.

  4. oleksandr-pavlyk commented on May 21, 2021

    @oleksandr-pavlyk
    Contributor

    This has been adequately resolved. Voting to close.

  5. diptorupd commented on May 24, 2021

    @diptorupd
    Contributor

    The issue of C++ function names is still to be resolved.

  6. diptorupd commented on Jan 8, 2022

    @diptorupd
    Contributor

    The name has been standardized everywhere with the exception of libsyclinterface. In libsyclinterface, the DPCTL prefix continues to be used and changing that buys us very little. I will document the naming convention in our future programmer's manual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions