Skip to content

question about reqd_sub_group_size #2647

Open

Description

@jinz2014

When building a SYCL program targeting an AMD GPU that has a sub group size of 64, [[intel::reqd_sub_group_size(32)]] will cause compile error. Will you disable the generation of the attribute ?

Activity

  1. tomflinda commented on Feb 5, 2025

    @tomflinda
    Contributor

    @jinz2014 Could you try to change "[[intel::reqd_sub_group_size(32)]]" to "[[sycl::reqd_sub_group_size(32)]]", and could it be built pass?

  2. jinz2014 commented on Feb 12, 2025

    @jinz2014
    ContributorAuthor

    The compile time warning is
    warning: attribute argument 32 is invalid and will be ignored; amdgcn requires sub_group size 64 [-Wincorrect-sub-group-size]

    The runtime error is
    terminate called after throwing an instance of 'sycl::_V1::exception'
    what(): Sub-group size 32 is not supported on the device

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions