From 4ef369958b09d6e073eca1d1ded3ca8b28bd74cb Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 18 Oct 2018 09:36:36 -0400
Subject: [PATCH] P4 to Git Change 1619908 by wchau@wchau_OCL_cmake on
2018/10/16 14:08:33
SWDEV-167383 - [OCL]: Switch to new object format
- Add flag to disable Ver 3 Object format until it is support by OCL
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#11 edit
---
rocclr/runtime/device/devprogram.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/rocclr/runtime/device/devprogram.cpp b/rocclr/runtime/device/devprogram.cpp
index 88d0abf88d..1d7d4d5268 100644
--- a/rocclr/runtime/device/devprogram.cpp
+++ b/rocclr/runtime/device/devprogram.cpp
@@ -335,6 +335,7 @@ bool Program::compileImplLC(const std::string& sourceCode,
driverOptions.append(" -include-pch " + pch->Name());
driverOptions.append(" -Xclang -fno-validate-pch");
+ driverOptions.append(" -Xclang -target-feature -Xclang -code-object-v3");
// Tokenize the options string into a vector of strings
std::istringstream istrstr(driverOptions);