P4 to Git Change 1273850 by smekhano@stas-rampitec-hsa on 2016/05/27 12:10:58
SWDEV-85602 - HSA HLC: remove gblobal variable HLC_Max_WG_Size and pass info as an option Testing: smoke, precheckin Reviewed by Evgeny Mankov Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#147 edit ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/v0_8/if_acl.cpp#94 edit ... //depot/stg/opencl/drivers/opencl/compiler/llvm/lib/Target/HSAIL/HSAILISelLowering.cpp#117 edit
This commit is contained in:
@@ -122,12 +122,6 @@
|
||||
#endif
|
||||
#define DEBUG_TYPE "ocl_linker"
|
||||
|
||||
#if !defined(LEGACY_COMPLIB)
|
||||
namespace llvm {
|
||||
extern unsigned HLC_Max_WG_Size;
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace AMDSpir {
|
||||
extern void replaceTrivialFunc(llvm::Module& M);
|
||||
}
|
||||
@@ -599,7 +593,6 @@ amdcl::OCLLinker::link(llvm::Module* input, std::vector<llvm::Module*> &libs)
|
||||
setFP32RoundDivideSqrt(Options()->oVariables->FP32RoundDivideSqrt);
|
||||
setUseNative(Options()->oVariables->OptUseNative);
|
||||
setDenormsAreZero(Options()->oVariables->DenormsAreZero);
|
||||
llvm::HLC_Max_WG_Size = 2048; // Maximum HW supported workgroup size
|
||||
setUniformWorkGroupSize(Options()->oVariables->UniformWorkGroupSize);
|
||||
setHaveFastFMA32(chip == "Cypress"
|
||||
|| chip == "Cayman"
|
||||
|
||||
Reference in New Issue
Block a user