mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Add ClDevice
Decouple cl_device_id from Device class. Related-To: NEO-3938 Change-Id: I68543a753aea562f3b47ba0d23a059ff3cffa906 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
@@ -70,7 +70,7 @@ TEST(ExecutionEnvironment, givenDeviceThatHaveRefferencesAfterPlatformIsDestroye
|
||||
std::unique_ptr<Platform> platform(new Platform);
|
||||
auto executionEnvironment = platform->peekExecutionEnvironment();
|
||||
platform->initialize();
|
||||
auto device = platform->getDevice(0);
|
||||
auto device = platform->getClDevice(0);
|
||||
EXPECT_EQ(1, device->getRefInternalCount());
|
||||
device->incRefInternal();
|
||||
platform.reset(nullptr);
|
||||
|
||||
Reference in New Issue
Block a user