Skip to content

Commit a45ca0a

Browse files
committed
Revert "[SYCL] Disable FP16 support check for SYCL CUDA BE"
This reverts commit a4f4fa9. Signed-off-by: Victor Lomuller <[email protected]>
1 parent 58033e7 commit a45ca0a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

clang/lib/Sema/Sema.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,12 +1753,7 @@ void Sema::checkDeviceDecl(const ValueDecl *D, SourceLocation Loc) {
17531753
if (Ty->isDependentType())
17541754
return;
17551755

1756-
auto IsSYCLDeviceCuda = getLangOpts().SYCLIsDevice &&
1757-
Context.getTargetInfo().getTriple().isNVPTX();
1758-
if ((Ty->isFloat16Type() && !Context.getTargetInfo().hasFloat16Type() &&
1759-
// Disable check for SYCL CUDA BE until FP16 support is properly
1760-
// reported there (issue#1799)
1761-
!IsSYCLDeviceCuda) ||
1756+
if ((Ty->isFloat16Type() && !Context.getTargetInfo().hasFloat16Type()) ||
17621757
((Ty->isFloat128Type() ||
17631758
(Ty->isRealFloatingType() && Context.getTypeSize(Ty) == 128)) &&
17641759
!Context.getTargetInfo().hasFloat128Type()) ||

0 commit comments

Comments
 (0)