P4 to Git Change 1442616 by bsumner@bsumner-lin-opencl on 2017/08/02 11:33:24

SWDEV-129003 - correct logic for library control to fix regression

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#42 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#68 edit
Esse commit está contido em:
foreman
2017-08-02 11:50:30 -04:00
commit 786006f223
2 arquivos alterados com 8 adições e 6 exclusões
+4 -3
Ver Arquivo
@@ -1382,9 +1382,10 @@ bool LightningProgram::linkImpl(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(!AMD_GPU_FORCE_SINGLE_FP_DENORM &&
(dev().hwInfo()->gfxipVersion_ < 900 ||
options->oVariables->DenormsAreZero));
auto daz_opt = get_oclc_daz_opt(options->oVariables->DenormsAreZero ||
AMD_GPU_FORCE_SINGLE_FP_DENORM == 0 ||
(dev().deviceInfo().gfxipVersion_ < 900 &&
AMD_GPU_FORCE_SINGLE_FP_DENORM < 0));
Data* daz_opt_bc = C->NewBufferReference(DT_LLVM_BC, daz_opt.first, daz_opt.second);
auto finite_only = get_oclc_finite_only(options->oVariables->FiniteMathOnly ||