mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
Avoid default parameter to program constructor.
Change-Id: I75e9a619131f7d8721416cf18d87418568d04f25
This commit is contained in:
committed by
sys_ocldev
parent
0b6acb4d7a
commit
7f7daef49c
@@ -37,7 +37,7 @@ T *Program::create(
|
||||
auto pContext = castToObject<Context>(context);
|
||||
DEBUG_BREAK_IF(!pContext);
|
||||
|
||||
auto program = new T(pContext);
|
||||
auto program = new T(pContext, false);
|
||||
|
||||
auto retVal = program->createProgramFromBinary(binaries[0], lengths[0]);
|
||||
|
||||
@@ -76,7 +76,7 @@ T *Program::create(
|
||||
lengths);
|
||||
|
||||
if (CL_SUCCESS == retVal) {
|
||||
program = new T(pContext);
|
||||
program = new T(pContext, false);
|
||||
program->sourceCode.swap(combinedString);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace OCLRT {
|
||||
const std::string Program::clOptNameClVer("-cl-std=CL");
|
||||
const std::string Program::clOptNameUniformWgs{"-cl-uniform-work-group-size"};
|
||||
|
||||
Program::Program() : Program(nullptr) {
|
||||
Program::Program() : Program(nullptr, false) {
|
||||
numDevices = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ class Program : public BaseObject<_cl_program> {
|
||||
size_t length,
|
||||
cl_int &errcodeRet);
|
||||
|
||||
Program(Context *context, bool isBuiltIn = false);
|
||||
Program(Context *context, bool isBuiltIn);
|
||||
~Program() override;
|
||||
|
||||
Program(const Program &) = delete;
|
||||
|
||||
Reference in New Issue
Block a user