mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Remove dummy constructor for Program
Related-To: NEO-5001 Change-Id: I0a99b297a6a910a8a4e8c0bfcc8da2833755e187 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
3012388815
commit
45665ae236
@@ -96,19 +96,9 @@ T *Program::create(
|
||||
}
|
||||
|
||||
if (retVal == CL_SUCCESS) {
|
||||
program = new T(*device.getExecutionEnvironment());
|
||||
program = new T(*device.getExecutionEnvironment(), context, isBuiltIn, &device.getDevice());
|
||||
program->sourceCode = nullTerminatedString;
|
||||
program->createdFrom = CreatedFrom::SOURCE;
|
||||
program->context = context;
|
||||
program->isBuiltIn = isBuiltIn;
|
||||
if (program->context && !program->isBuiltIn) {
|
||||
program->context->incRefInternal();
|
||||
}
|
||||
program->pDevice = &device.getDevice();
|
||||
program->numDevices = 1;
|
||||
if (is32bit || DebugManager.flags.DisableStatelessToStatefulOptimization.get() || device.areSharedSystemAllocationsAllowed()) {
|
||||
CompilerOptions::concatenateAppend(program->internalOptions, CompilerOptions::greaterThan4gbBuffersRequired);
|
||||
}
|
||||
}
|
||||
|
||||
if (errcodeRet) {
|
||||
|
||||
Reference in New Issue
Block a user