From 10ae0ef0b9417daf8a9202c77044f531ae9ef224 Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 25 Oct 2016 17:45:43 -0400 Subject: [PATCH] P4 to Git Change 1331609 by lmoriche@lmoriche_opencl_dev on 2016/10/25 17:25:08 SWDEV-94610 - Fix the build for OpenCL/LC on Linux. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#43 edit --- rocclr/runtime/device/rocm/rocprogram.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/runtime/device/rocm/rocprogram.cpp b/rocclr/runtime/device/rocm/rocprogram.cpp index ef741059dd..c0e5baeceb 100644 --- a/rocclr/runtime/device/rocm/rocprogram.cpp +++ b/rocclr/runtime/device/rocm/rocprogram.cpp @@ -820,7 +820,7 @@ HSAILProgram::linkImpl_LC(amd::option::Options *options) Data* correctly_rounded_sqrt_bc = C->NewBufferReference(DT_LLVM_BC, correctly_rounded_sqrt.first, correctly_rounded_sqrt.second); - auto daz_opt = get_oclc_daz_opt(dev().hwInfo()->gfxipVersion_ < 900 + auto daz_opt = get_oclc_daz_opt(dev().deviceInfo().gfxipVersion_ < 900 || options->oVariables->DenormsAreZero); Data* daz_opt_bc = C->NewBufferReference(DT_LLVM_BC, daz_opt.first, daz_opt.second);