2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2020-02-23 05:21:06 +08:00
|
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-23 22:20:22 +08:00
|
|
|
#include "opencl/test/unit_test/fixtures/device_fixture.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
#include "test.h"
|
2020-02-23 05:50:57 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
using namespace NEO;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2018-03-30 02:37:43 +08:00
|
|
|
typedef Test<DeviceFixture> DeviceTest;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2020-05-05 22:40:31 +08:00
|
|
|
BXTTEST_F(DeviceTest, getEnabledClVersion12Device) {
|
|
|
|
auto version = pClDevice->getEnabledClVersion();
|
2017-12-21 07:45:38 +08:00
|
|
|
EXPECT_EQ(12u, version);
|
|
|
|
}
|
|
|
|
|
|
|
|
BXTTEST_F(DeviceTest, givenBxtDeviceWhenAskedForProflingTimerResolutionThen52IsReturned) {
|
|
|
|
auto resolution = pDevice->getProfilingTimerResolution();
|
|
|
|
EXPECT_DOUBLE_EQ(52.083, resolution);
|
|
|
|
}
|