Skip to content

[SYCL] Remove the __SYCL_NVPTX__ macro #3977

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 5 commits into from
Jun 24, 2021
Merged

Conversation

AGindinson
Copy link
Contributor

@AGindinson AGindinson commented Jun 23, 2021

Since the macro is identical to a combination of
__SYCL_DEVICE_ONLY__ and __NVPTX__, showing up in the same
circumstances (SYCL device compilation with an NVPTX triple), drop
__SYCL_NVPTX__ as unnecessary and solely rely on the combination of
pre-existing macros.

Signed-off-by: Artem Gindinson artem.gindinson@intel.com

Also includes a relevant stylistic fix suggested in
intel#3869 (comment).

Signed-off-by: Artem Gindinson <artem.gindinson@intel.com>
@AGindinson AGindinson added the cuda CUDA back-end label Jun 23, 2021
Since the macro is identical to a combination of
`__SYCL_DEVICE_ONLY__` and `__NVPTX__`, showing up in the same
circumstances (SYCL device compilation with an NVPTX triple), drop
`__SYCL_NVPTX__` as unnecessary and solely rely on the combination of
pre-existing macros.

Signed-off-by: Artem Gindinson <artem.gindinson@intel.com>
@AGindinson AGindinson requested review from pvchupin and a team as code owners June 23, 2021 17:05
@AGindinson AGindinson requested a review from romanovvlad June 23, 2021 17:05
@AGindinson AGindinson changed the title [SYCL] Add FE LIT testing for __SYCL_NVPTX__ macro [SYCL] Remove the __SYCL_NVPTX__ macro Jun 23, 2021
@AGindinson AGindinson requested a review from bader June 23, 2021 17:06
Artem Gindinson added 2 commits June 24, 2021 07:33
Signed-off-by: Artem Gindinson <artem.gindinson@intel.com>
Signed-off-by: Artem Gindinson <artem.gindinson@intel.com>
bader
bader previously approved these changes Jun 24, 2021
romanovvlad
romanovvlad previously approved these changes Jun 24, 2021
Signed-off-by: Artem Gindinson <artem.gindinson@intel.com>
@AGindinson AGindinson dismissed stale reviews from romanovvlad and bader via c28c683 June 24, 2021 11:06
@AGindinson
Copy link
Contributor Author

@bader @elizabethandrews @romanovvlad I've rebased onto AMD GPU support, fixing a misspell in __AMDGCN__ along the way (#3795 ended up having that as __AMDCGN__). Could you please take another look?

@bader bader requested a review from romanovvlad June 24, 2021 11:15
Copy link
Contributor

@elizabethandrews elizabethandrews 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!

@bader bader merged commit 619c462 into intel:sycl Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda CUDA back-end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants