Skip to content

Conversation

@bader
Copy link
Contributor

@bader bader commented Dec 23, 2019

This workaround is not needed anymore.

Signed-off-by: Alexey Bader alexey.bader@intel.com

This workaround is not needed anymore.

Signed-off-by: Alexey Bader <alexey.bader@intel.com>
@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 <alexey.sachkov@intel.com>
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 <alexey.sachkov@intel.com>
@bader bader deleted the exception-workaround branch July 11, 2024 23:05
coldav pushed a commit to coldav/llvm that referenced this pull request Sep 2, 2025
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