2018-04-06 19:48:49 +08:00
|
|
|
/*
|
2018-09-18 15:11:08 +08:00
|
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
2018-04-06 19:48:49 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-04-06 19:48:49 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "runtime/helpers/options.h"
|
|
|
|
#include "unit_tests/fixtures/platform_fixture.h"
|
|
|
|
#include "test.h"
|
|
|
|
|
|
|
|
using namespace OCLRT;
|
|
|
|
|
|
|
|
struct Gen10PlatformCaps : public PlatformFixture, public ::testing::Test {
|
|
|
|
void SetUp() override {
|
2018-06-26 16:51:01 +08:00
|
|
|
PlatformFixture::SetUp();
|
2018-04-06 19:48:49 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void TearDown() override {
|
|
|
|
PlatformFixture::TearDown();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
GEN10TEST_F(Gen10PlatformCaps, hpSkusSupportFP64) {
|
|
|
|
const auto &caps = pPlatform->getPlatformInfo();
|
|
|
|
|
|
|
|
EXPECT_NE(std::string::npos, caps.extensions.find(std::string("cl_khr_fp64")));
|
|
|
|
}
|