From 4274bad05bde95266c9059eb5c51d8a89937cb71 Mon Sep 17 00:00:00 2001 From: Yifei1 He Date: Fri, 6 Nov 2020 11:28:13 +0800 Subject: [PATCH] Disable pch when using OCL 3.0 --- options_compile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options_compile.cpp b/options_compile.cpp index 55236f44..73756a5d 100644 --- a/options_compile.cpp +++ b/options_compile.cpp @@ -282,7 +282,7 @@ std::string EffectiveOptionsFilter::processOptions(const OpenCLArgList &args, extMap.begin(), extMap.end(), [](decltype(*begin(extMap)) p) { return p.second == false; }); - if (useModules) { + if (useModules && (iCLStdSet < 300)) { effectiveArgs.push_back("-fmodules"); if (fp64Enable == 0) { if (szTriple.find("spir64") != szTriple.npos) {