From a28efbda7f3acf5f7076176d45d038c8aafa15b2 Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 15 Mar 2016 13:46:39 -0400
Subject: [PATCH] P4 to Git Change 1247541 by smekhano@stas-rampitec-hsa on
2016/03/15 13:32:04
SWDEV-77584 - fixed work of option -cl-uniform-work-group-size to produce requirenopartialworkgroups in hsail
Testing: smoke, precheckin
Reviewed by Evgeny Mankov
Affected files ...
... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/codegen.cpp#67 edit
... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILKernelManager.cpp#52 edit
... //depot/stg/opencl/drivers/opencl/tests/hsa/tlst/ocl_features.tlst#52 edit
[ROCm/clr commit: 0967db2af77c9a722890c2959d9fe0fc2e4197a4]
---
projects/clr/rocclr/compiler/lib/backends/common/codegen.cpp | 1 +
1 file changed, 1 insertion(+)
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());