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) {