Skip to content

Commit 91c2d22

Browse files
authored
Merge pull request #216 from woshiyifei/ocl-open-80
Disable pch when using OCL 3.0
2 parents d60ea61 + 4274bad commit 91c2d22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

options_compile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ std::string EffectiveOptionsFilter::processOptions(const OpenCLArgList &args,
282282
extMap.begin(), extMap.end(),
283283
[](decltype(*begin(extMap)) p) { return p.second == false; });
284284

285-
if (useModules) {
285+
if (useModules && (iCLStdSet < 300)) {
286286
effectiveArgs.push_back("-fmodules");
287287
if (fp64Enable == 0) {
288288
if (szTriple.find("spir64") != szTriple.npos) {

0 commit comments

Comments
 (0)