Skip to content

Commit 8e9f1e3

Browse files
committed
[Clang] Allow intel_reqd_sub_group_size attr for CUDA SPIRV (#25953)
llvm/llvm-project@df13acf is adding support of it in cudaSPIRV We customized the attr, we should allow it for CUDA to be consistent with llorg. Fixes failures in Clang::CodeGenCUDASPIRV/spirv-attrs.cu Clang::SemaCUDA/spirv-attrs.cu
1 parent 70a7817 commit 8e9f1e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Basic/Attr.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,7 @@ def IntelReqdSubGroupSize: InheritableAttr {
22232223
let Args = [ExprArgument<"Value">];
22242224
let Subjects = SubjectList<[Function], ErrorDiag>;
22252225
let Documentation = [IntelReqdSubGroupSizeDocs];
2226-
let LangOpts = [OpenCL, SYCLIsDevice, SilentlyIgnoreSYCLIsHost];
2226+
let LangOpts = [OpenCL, SYCLIsDevice, SilentlyIgnoreSYCLIsHost, CUDA];
22272227
let SupportsNonconformingLambdaSyntax = 1;
22282228
let Accessors =
22292229
[Accessor<"isSYCL2020Spelling", [CXX11<"intel", "sub_group_size">]>];

0 commit comments

Comments
 (0)