-
Notifications
You must be signed in to change notification settings - Fork 790
[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
Conversation
This workaround is not needed anymore. Signed-off-by: Alexey Bader <[email protected]>
4564fc5
to
6fd151b
Compare
There was a problem hiding this 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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
This effectively breaks Ubuntu 16 or any other system which has GCC < 7.1. Before GCC 7.1, |
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]>
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]>
This workaround is not needed anymore.
Signed-off-by: Alexey Bader [email protected]