From bf45e6549f5ad5a32fef48bdb18e9977cf06d76b Mon Sep 17 00:00:00 2001 From: foreman Date: Wed, 3 Feb 2016 22:33:51 -0500 Subject: [PATCH] P4 to Git Change 1234219 by smekhano@stas-rampitec-hsa on 2016/02/03 22:29:28 SWDEV-86849 - HSA HLC: add AssertZExt to get_local_id/get_local_size calls if workrgoup size is know to fit i8 or i16 Testing: smoke, precheckin Reviewed by Valery Pykhtin Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#138 edit ... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILISelLowering.cpp#110 edit ... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILISelLowering.h#27 edit ... //depot/stg/opencl/drivers/opencl/tests/hsa/src/llc/opt/mul24/local_size.cl#1 add ... //depot/stg/opencl/drivers/opencl/tests/hsa/tlst/llc_opt.tlst#80 edit --- rocclr/compiler/lib/backends/common/linker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rocclr/compiler/lib/backends/common/linker.cpp b/rocclr/compiler/lib/backends/common/linker.cpp index 9b21c76911..9b78f7b980 100644 --- a/rocclr/compiler/lib/backends/common/linker.cpp +++ b/rocclr/compiler/lib/backends/common/linker.cpp @@ -125,6 +125,7 @@ #if !defined(LEGACY_COMPLIB) namespace llvm { extern bool HLC_FlushF32Denorms; + extern unsigned HLC_Max_WG_Size; } #endif @@ -739,6 +740,7 @@ amdcl::OCLLinker::link(llvm::Module* input, std::vector &libs) setDenormsAreZero(Options()->oVariables->DenormsAreZero); #if !defined(LEGACY_COMPLIB) llvm::HLC_FlushF32Denorms = Options()->oVariables->DenormsAreZero; + llvm::HLC_Max_WG_Size = 2048; // Maximum HW supported workgroup size #endif setUniformWorkGroupSize(Options()->oVariables->UniformWorkGroupSize); setHaveFastFMA32(chip == "Cypress"