Skip to content

[SYCL] Enable USM address spaces generation under opt flag #2127

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

Merged
merged 1 commit into from
Jul 18, 2020

Conversation

MrSidims
Copy link
Contributor

This patch serves two purposes:

  1. It reverts shift of accessors to global buffers from __global to
    __global_device address space, which was considered as not a good
    idea until proven otherwise. Still this shift is enabled under
    -fsycl_enable_usm_address_spaces option for testing;
  2. It fixes a mangling issue of functions that accepts arguments
    of multi_ptr<> type for non-SPIR targets (see:
    [SYCL] Mangling issues for device_ptr/global_ptr for non-SPIR targets #2039)

Plans for the future:
-fsycl_enable_usm_address_spaces option is a temporary option and
will be removed. To solve the mangling issue ENABLE_USM_ADDR_SPACE
macro will be added anyway under a combination of -fintelfpga and -Xs
flags. Future of accessor pointer at this point is unclear.

Signed-off-by: Dmitry Sidorov [email protected]

@MrSidims MrSidims requested review from AGindinson, mdtoguchi and a team as code owners July 16, 2020 13:05
@MrSidims MrSidims requested a review from rbegam July 16, 2020 13:05
@MrSidims MrSidims changed the title [SYCL] Enable USM address spaces heneration upder opt [SYCL] Enable USM address spaces generation under opt flag Jul 16, 2020
Pennycook
Pennycook previously approved these changes Jul 16, 2020
Copy link
Contributor

@Pennycook Pennycook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for doing this.

mohammadfawaz
mohammadfawaz previously approved these changes Jul 16, 2020
Copy link
Contributor

@rbegam rbegam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please resolve the conflicts.

This patch serves two purposes:
1. It reverts shift of accessors to global buffers from __global to
   __global_device address space, which was considered as not a good
   idea until proven otherwise. Still this shift is enabled under
   -fsycl_enable_usm_address_spaces option for testing;
2. It fixes a mangling issue of functions that accepts arguments
   of multi_ptr<> type for non-SPIR targets (see:
   intel#2039)

Signed-off-by: Dmitry Sidorov <[email protected]>
@MrSidims MrSidims requested a review from AGindinson July 17, 2020 12:26
jsji pushed a commit that referenced this pull request Aug 21, 2023
This is a bulk conversion done using the migration script.

There are more transcoding tests to be converted; however they will
need manual fixups, so leave them out of this bulk conversion.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@76fcc39
jsji pushed a commit that referenced this pull request Aug 31, 2023
This is a bulk conversion done using the migration script.

There are more transcoding tests to be converted; however they will
need manual fixups, so leave them out of this bulk conversion.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@76fcc39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants