diff --git a/projects/clr/rocclr/compiler/lib/backends/common/codegen.cpp b/projects/clr/rocclr/compiler/lib/backends/common/codegen.cpp index 4abd48a133..528f6fa497 100644 --- a/projects/clr/rocclr/compiler/lib/backends/common/codegen.cpp +++ b/projects/clr/rocclr/compiler/lib/backends/common/codegen.cpp @@ -658,6 +658,7 @@ CLCodeGen::codegen(llvm::Module *input) if (!isHSAILTarget(cs->Elf()->target)) { setWholeProgram(true); } + setUniformWorkGroupSize(Options()->oVariables->UniformWorkGroupSize); int ret = llvmCodeGen(LLVMBinary(), Options(), Source(), Elf());