Skip to content

Add default nd_range constructor #1043

Description

@KornevNikita

Extension Type

Improvement

Feature Description

The range and id classes have default constructor. It's possible that user is not aware of the required globalSize and `localSize, so it's not possible to construct the range using the existing constructor:

  // The offset is deprecated in SYCL 2020.
  nd_range(range<Dimensions> globalSize, range<Dimensions> localSize,
           id<Dimensions> offset = id<Dimensions>()) noexcept;

Therefore I suggest to add:

nd_range() noexcept;

Related Functionality in C++

No response

Related Functionality in Other Languages

No response

Related SYCL Extensions

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    AgendaTo be discussed during a SYCL committee meetingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions