From 0d315736fe6ce1c745de723f49f80175c1d6c5f9 Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 21 Mar 2017 17:16:46 -0400 Subject: [PATCH] P4 to Git Change 1388753 by smekhano@stas-rampitec-hsa on 2017/03/21 17:11:34 SWDEV-116690 - disable passing of -cl-fast-relaxed-math on ORCA path only This is the w/a for bogus accurancy expectations of flopscl. Testing: flopscl, precheckin Reviewed by Brian Sumner and Evgeny Mankov Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/utils/options.cpp#40 edit --- rocclr/compiler/lib/utils/options.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rocclr/compiler/lib/utils/options.cpp b/rocclr/compiler/lib/utils/options.cpp index 74b33fac63..fa67675cdc 100644 --- a/rocclr/compiler/lib/utils/options.cpp +++ b/rocclr/compiler/lib/utils/options.cpp @@ -769,7 +769,9 @@ processOption(int OptDescTableIx, Options& Opts, const std::string& Value, Opts.clcOptions.append(" -D__FAST_RELAXED_MATH__=1"); Opts.clangOptions.push_back("-D__FAST_RELAXED_MATH__=1"); +#if defined(WITH_LIGHTNING_COMPILER) // w/a for SWDEV-116690 Opts.clangOptions.push_back("-cl-fast-relaxed-math"); +#endif // fall-through to handle UnsafeMathOpt case OID_UnsafeMathOpt: