diff --git a/projects/clr/rocclr/runtime/device/pal/palcompiler.cpp b/projects/clr/rocclr/runtime/device/pal/palcompiler.cpp index f16455aea1..778338d0da 100644 --- a/projects/clr/rocclr/runtime/device/pal/palcompiler.cpp +++ b/projects/clr/rocclr/runtime/device/pal/palcompiler.cpp @@ -241,6 +241,9 @@ bool LightningProgram::compileImpl(const std::string& sourceCode, buildLog_ += "Unsupported OpenCL language.\n"; } + // FIXME_Nikolay: the program manager should be setting the language + // driverOptions.append(" -x cl"); + driverOptions.append(" -cl-std=").append(options->oVariables->CLStd); // Set the -O# diff --git a/projects/clr/rocclr/runtime/device/rocm/roccompiler.cpp b/projects/clr/rocclr/runtime/device/rocm/roccompiler.cpp index ab945f7206..1c167d3051 100644 --- a/projects/clr/rocclr/runtime/device/rocm/roccompiler.cpp +++ b/projects/clr/rocclr/runtime/device/rocm/roccompiler.cpp @@ -83,6 +83,9 @@ bool HSAILProgram::compileImpl_LC(const std::string& sourceCode, buildLog_ += "Unsupported OpenCL language.\n"; } + // FIXME_Nikolay: the program manager should be setting the language + // driverOptions.append(" -x cl"); + driverOptions.append(" -cl-std=").append(options->oVariables->CLStd); // Set the -O#