From c65580a1f62f43810d0b257921357029809d80ca Mon Sep 17 00:00:00 2001
From: foreman
Date: Wed, 7 Mar 2018 16:14:25 -0500
Subject: [PATCH] P4 to Git Change 1523996 by wchau@wchau_OCL_boltzmann on
2018/03/07 16:08:29
SWDEV-146839 - OCL 2.0 WF - Contractions test encounters failure on Raven
- root cause: subnormals should be enabled for Raven (gfx902)
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#32 edit
---
rocclr/runtime/device/rocm/rocsettings.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/rocclr/runtime/device/rocm/rocsettings.cpp b/rocclr/runtime/device/rocm/rocsettings.cpp
index 442871edde..c2a23ed3ac 100644
--- a/rocclr/runtime/device/rocm/rocsettings.cpp
+++ b/rocclr/runtime/device/rocm/rocsettings.cpp
@@ -119,10 +119,9 @@ bool Settings::create(bool fullProfile, int gfxipVersion) {
#if defined(WITH_LIGHTNING_COMPILER)
enableExtension(ClAmdAssemblyProgram);
- switch (gfxipVersion) {
- case 900:
+ // enable subnormals for gfx900 and later
+ if (gfxipVersion >= 900) {
singleFpDenorm_ = true;
- break;
}
#endif // WITH_LIGHTNING_COMPILER