File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1753,7 +1753,12 @@ void Sema::checkDeviceDecl(const ValueDecl *D, SourceLocation Loc) {
1753
1753
if (Ty->isDependentType ())
1754
1754
return ;
1755
1755
1756
- if ((Ty->isFloat16Type () && !Context.getTargetInfo ().hasFloat16Type ()) ||
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) ||
1757
1762
((Ty->isFloat128Type () ||
1758
1763
(Ty->isRealFloatingType () && Context.getTypeSize (Ty) == 128 )) &&
1759
1764
!Context.getTargetInfo ().hasFloat128Type ()) ||
You can’t perform that action at this time.
0 commit comments