File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -8091,6 +8091,10 @@ void AMDGPUTargetCodeGenInfo::setTargetAttributes(
80918091 (M.getTriple ().getOS () == llvm::Triple::AMDHSA))
80928092 F->addFnAttr (" amdgpu-implicitarg-num-bytes" , " 56" );
80938093
8094+ if (IsHIPKernel)
8095+ F->addFnAttr (" uniform-work-group-size" , " true" );
8096+
8097+
80948098 const auto *FlatWGS = FD->getAttr <AMDGPUFlatWorkGroupSizeAttr>();
80958099 if (ReqdWGS || FlatWGS) {
80968100 unsigned Min = 0 ;
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ __global__ void num_vgpr_64() {
3939// NAMD-NOT: "amdgpu-num-vgpr"
4040// NAMD-NOT: "amdgpu-num-sgpr"
4141
42- // DEFAULT-DAG: attributes [[FLAT_WORK_GROUP_SIZE_DEFAULT]] = {{.*}}"amdgpu-flat-work-group-size"="1,256"
42+ // DEFAULT-DAG: attributes [[FLAT_WORK_GROUP_SIZE_DEFAULT]] = {{.*}}"amdgpu-flat-work-group-size"="1,256"{{.*}}"uniform-work-group-size"="true"
4343// MAX1024-DAG: attributes [[FLAT_WORK_GROUP_SIZE_DEFAULT]] = {{.*}}"amdgpu-flat-work-group-size"="1,1024"
4444// CHECK-DAG: attributes [[FLAT_WORK_GROUP_SIZE_32_64]] = {{.*}}"amdgpu-flat-work-group-size"="32,64"
4545// CHECK-DAG: attributes [[WAVES_PER_EU_2]] = {{.*}}"amdgpu-waves-per-eu"="2"
You can’t perform that action at this time.
0 commit comments