mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
28 lines
883 B
C++
28 lines
883 B
C++
/*
|
|
* Copyright (C) 2023-2024 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/ail/ail_configuration.h"
|
|
#include "shared/test/common/test_macros/hw_test.h"
|
|
|
|
namespace NEO {
|
|
|
|
using AILBaseTests = ::testing::Test;
|
|
|
|
HWTEST2_F(AILBaseTests, whenKernelSourceIsANGenDummyKernelThenDoEnforcePatchtokensFormat, MatchAny) {
|
|
std::string dummyKernelSource{"kernel void _(){}"};
|
|
AILConfigurationHw<productFamily> ail;
|
|
EXPECT_TRUE(ail.isFallbackToPatchtokensRequired(dummyKernelSource));
|
|
}
|
|
|
|
HWTEST2_F(AILBaseTests, whenKernelSourceIsNotANGenDummyKernelThenDoNotEnforcePatchtokensFormat, MatchAny) {
|
|
std::string dummyKernelSource{"kernel void copybuffer(__global int* a, __global int* b){ //some code }"};
|
|
AILConfigurationHw<productFamily> ail;
|
|
EXPECT_FALSE(ail.isFallbackToPatchtokensRequired(dummyKernelSource));
|
|
}
|
|
|
|
} // namespace NEO
|