Skip to content

Commit 4e83bbf

Browse files
authored
Merge pull request #217 from woshiyifei/ocl-open-100
Disable pch when using OCL 3.0
2 parents ca75b48 + 95ee399 commit 4e83bbf

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
@@ -287,7 +287,7 @@ std::string EffectiveOptionsFilter::processOptions(const OpenCLArgList &args,
287287
bool useModules = !std::any_of(extMap.begin(), extMap.end(),
288288
[](const auto& p) {return p.second == false;});
289289

290-
if (useModules) {
290+
if (useModules && (iCLStdSet < 300)) {
291291
effectiveArgs.push_back("-fmodules");
292292
if (fp64Enable == 0) {
293293
if (szTriple.find("spir64") != szTriple.npos) {

0 commit comments

Comments
 (0)