mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add instance of gmm helper to execution environment
Change-Id: I1b044611fbad91fbb681ba233938f41502f29056
This commit is contained in:

committed by
sys_ocldev

parent
f26535a93d
commit
94dbdb602d
@ -66,7 +66,7 @@ void api_fixture_using_aligned_memory_manager::SetUp() {
|
||||
retVal = CL_SUCCESS;
|
||||
retSize = 0;
|
||||
|
||||
device = Device::create<MockAlignedMallocManagerDevice>(*platformDevices);
|
||||
device = MockDevice::createWithNewExecutionEnvironment<MockAlignedMallocManagerDevice>(*platformDevices);
|
||||
Device *devPtr = reinterpret_cast<Device *>(device);
|
||||
cl_device_id clDevice = devPtr;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, Intel Corporation
|
||||
* Copyright (c) 2017 - 2018, Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@ -80,7 +80,7 @@ TEST_F(clGetDeviceAndHostTimerTest, OsCallPass) {
|
||||
cl_ulong host_timestamp = 0;
|
||||
cl_ulong zero_timestamp = 0;
|
||||
|
||||
auto mDev = Device::create<MockDevice>(nullptr);
|
||||
auto mDev = MockDevice::createWithNewExecutionEnvironment<MockDevice>(nullptr);
|
||||
mDev->setOSTime(new MockOSTime());
|
||||
|
||||
retVal = clGetDeviceAndHostTimer(
|
||||
@ -100,7 +100,7 @@ TEST_F(clGetDeviceAndHostTimerTest, OsCallFail) {
|
||||
cl_ulong host_timestamp = 0;
|
||||
cl_ulong zero_timestamp = 0;
|
||||
|
||||
auto mDev = Device::create<MockDevice>(nullptr);
|
||||
auto mDev = MockDevice::createWithNewExecutionEnvironment<MockDevice>(nullptr);
|
||||
mDev->setOSTime(new FailOSTime());
|
||||
|
||||
retVal = clGetDeviceAndHostTimer(
|
||||
@ -149,7 +149,7 @@ TEST_F(clGetHostTimerTest, OsCallPass) {
|
||||
cl_ulong host_timestamp = 0;
|
||||
cl_ulong zero_timestamp = 0;
|
||||
|
||||
auto mDev = Device::create<MockDevice>(nullptr);
|
||||
auto mDev = MockDevice::createWithNewExecutionEnvironment<MockDevice>(nullptr);
|
||||
mDev->setOSTime(new MockOSTime());
|
||||
|
||||
retVal = clGetHostTimer(
|
||||
@ -166,7 +166,7 @@ TEST_F(clGetHostTimerTest, OsCallFail) {
|
||||
cl_ulong host_timestamp = 0;
|
||||
cl_ulong zero_timestamp = 0;
|
||||
|
||||
auto mDev = Device::create<MockDevice>(nullptr);
|
||||
auto mDev = MockDevice::createWithNewExecutionEnvironment<MockDevice>(nullptr);
|
||||
mDev->setOSTime(new FailOSTime());
|
||||
|
||||
retVal = clGetHostTimer(
|
||||
|
Reference in New Issue
Block a user