Skip to content

[SYCL][NFC] Remove SYCL specific TargetInfo types #965

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
Dec 26, 2019

Conversation

bader
Copy link
Contributor

@bader bader commented Dec 23, 2019

This workaround is not needed anymore.

Signed-off-by: Alexey Bader [email protected]

This workaround is not needed anymore.

Signed-off-by: Alexey Bader <[email protected]>
@bader bader changed the title [SYCL] Remove SYCL specific TargetInfo types [SYCL][NFC] Remove SYCL specific TargetInfo types Dec 23, 2019
@bader bader force-pushed the exception-workaround branch from 4564fc5 to 6fd151b Compare December 23, 2019 20:55
@erichkeane erichkeane requested a review from mibintc December 23, 2019 21:07
Copy link
Contributor

@erichkeane erichkeane left a comment

Choose a reason for hiding this comment

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

LGTM. Wouldn't mind if @mibintc took a look.

return new MicrosoftX86_32SPIRTargetInfo(Triple, Opts);
}
case llvm::Triple::Linux:
return new LinuxTargetInfo<SPIR32SYCLDeviceTargetInfo>(Triple, Opts);
Copy link

Choose a reason for hiding this comment

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

You don't need LinuxTargetInfo any more for SPIR device?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. There is no Linux on SPIR devices.

@romanovvlad romanovvlad merged commit ab8e5fe into intel:sycl Dec 26, 2019
@AlexeySachkov
Copy link
Contributor

This effectively breaks Ubuntu 16 or any other system which has GCC < 7.1.

Before GCC 7.1, exception_ptr was only available if ATOMIC_INT_LOCK_FREE > 1 (see this commit), which doesn't seem to be true for SPIR*TargetInfo.

AlexeySachkov added a commit that referenced this pull request Dec 26, 2019
This reverts commit ab8e5fe.

This patch effectively breaks Ubuntu 16 or any other system which has
GCC < 7.1.

Before GCC 7.1, `exception_ptr` was only available if
`ATOMIC_INT_LOCK_FREE > 1`
(see [this commit](gcc-mirror/gcc@c45be7f)),
which doesn't seem to be true for `SPIR*TargetInfo`.

Signed-off-by: Alexey Sachkov <[email protected]>
romanovvlad pushed a commit that referenced this pull request Dec 26, 2019
This reverts commit ab8e5fe.

This patch effectively breaks Ubuntu 16 or any other system which has
GCC < 7.1.

Before GCC 7.1, `exception_ptr` was only available if
`ATOMIC_INT_LOCK_FREE > 1`
(see [this commit](gcc-mirror/gcc@c45be7f)),
which doesn't seem to be true for `SPIR*TargetInfo`.

Signed-off-by: Alexey Sachkov <[email protected]>
@bader bader deleted the exception-workaround branch July 11, 2024 23:05
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