mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 14:33:04 +08:00
Change-Id: I4a1e7def6b26241592dba4ecd4a6a6cb3bb69835 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
24 lines
567 B
C++
24 lines
567 B
C++
/*
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "opencl/test/unit_test/fixtures/device_fixture.h"
|
|
#include "test.h"
|
|
|
|
using namespace NEO;
|
|
|
|
typedef Test<DeviceFixture> DeviceTest;
|
|
|
|
SKLTEST_F(DeviceTest, getEnabledClVersion21Device) {
|
|
auto version = pClDevice->getEnabledClVersion();
|
|
EXPECT_EQ(21u, version);
|
|
}
|
|
|
|
SKLTEST_F(DeviceTest, givenSklDeviceWhenAskedForProflingTimerResolutionThen83IsReturned) {
|
|
auto resolution = pDevice->getProfilingTimerResolution();
|
|
EXPECT_DOUBLE_EQ(83.333, resolution);
|
|
}
|