mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Add executionEnvironment field to Program
Change-Id: Id624177aa3f0b5525bac86e2e0a935ebaf53480e Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
956ee41c71
commit
524737af39
@@ -620,8 +620,8 @@ TEST_P(KernelReflectionSurfaceTest, getCurbeParamsReturnsTokenMask) {
|
||||
}
|
||||
|
||||
TEST(KernelReflectionSurfaceTestSingle, CreateKernelReflectionSurfaceCalledOnNonParentKernelDoesNotCreateReflectionSurface) {
|
||||
MockProgram program;
|
||||
MockDevice device(*platformDevices[0]);
|
||||
MockProgram program(*device.getExecutionEnvironment());
|
||||
KernelInfo info;
|
||||
MockKernel kernel(&program, info, device);
|
||||
|
||||
@@ -638,8 +638,8 @@ TEST(KernelReflectionSurfaceTestSingle, CreateKernelReflectionSurfaceCalledOnNon
|
||||
DebugManagerStateRestore dbgRestorer;
|
||||
DebugManager.flags.ForceDispatchScheduler.set(true);
|
||||
|
||||
MockProgram program;
|
||||
MockDevice device(*platformDevices[0]);
|
||||
MockProgram program(*device.getExecutionEnvironment());
|
||||
KernelInfo info;
|
||||
MockKernel kernel(&program, info, device);
|
||||
|
||||
@@ -653,9 +653,9 @@ TEST(KernelReflectionSurfaceTestSingle, CreateKernelReflectionSurfaceCalledOnNon
|
||||
}
|
||||
|
||||
TEST(KernelReflectionSurfaceTestSingle, ObtainKernelReflectionSurfaceWithoutKernelArgs) {
|
||||
MockProgram program;
|
||||
MockContext context;
|
||||
std::unique_ptr<MockDevice> device(MockDevice::createWithNewExecutionEnvironment<MockDevice>(platformDevices[0]));
|
||||
MockProgram program(*device->getExecutionEnvironment());
|
||||
KernelInfo *blockInfo = new KernelInfo;
|
||||
KernelInfo &info = *blockInfo;
|
||||
cl_queue_properties properties[1] = {0};
|
||||
@@ -704,9 +704,9 @@ TEST(KernelReflectionSurfaceTestSingle, ObtainKernelReflectionSurfaceWithoutKern
|
||||
}
|
||||
|
||||
TEST(KernelReflectionSurfaceTestSingle, ObtainKernelReflectionSurfaceWithDeviceQueueKernelArg) {
|
||||
MockProgram program;
|
||||
MockContext context;
|
||||
std::unique_ptr<MockDevice> device(MockDevice::createWithNewExecutionEnvironment<MockDevice>(platformDevices[0]));
|
||||
MockProgram program(*device->getExecutionEnvironment());
|
||||
|
||||
KernelInfo *blockInfo = new KernelInfo;
|
||||
KernelInfo &info = *blockInfo;
|
||||
|
||||
Reference in New Issue
Block a user