Files
compute-runtime/unit_tests/libult/gen12lp.cpp
Dunajski, Bartosz d18d1b6ce4 Opensource TGLLP
Change-Id: I1685057a641d938170b8c7ec860d2f53f45b1d6d
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-09-27 09:20:41 +02:00

34 lines
769 B
C++

/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/helpers/base_object.h"
#include "unit_tests/libult/ult_command_stream_receiver.h"
namespace NEO {
typedef TGLLPFamily Family;
static auto gfxCore = IGFX_GEN12LP_CORE;
extern CommandStreamReceiverCreateFunc commandStreamReceiverFactory[2 * IGFX_MAX_CORE];
template <>
void populateFactoryTable<UltCommandStreamReceiver<Family>>() {
commandStreamReceiverFactory[IGFX_MAX_CORE + gfxCore] = UltCommandStreamReceiver<Family>::create;
}
struct enableGen12LP {
enableGen12LP() {
populateFactoryTable<UltCommandStreamReceiver<Family>>();
}
};
static enableGen12LP enable;
template class UltCommandStreamReceiver<TGLLPFamily>;
} // namespace NEO