Files
compute-runtime/shared/source/unit_tests/libult/gen11.cpp
kamdiedrich e072275ae6 Reorganization directory structure [3/n]
Change-Id: If3dfa3f6007f8810a6a1ae1a4f0c7da38544648d
2020-02-23 23:48:28 +01:00

34 lines
779 B
C++

/*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/source/helpers/base_object.h"
#include "opencl/test/unit_test/libult/ult_command_stream_receiver.h"
namespace NEO {
typedef ICLFamily Family;
static auto gfxCore = IGFX_GEN11_CORE;
extern CommandStreamReceiverCreateFunc commandStreamReceiverFactory[2 * IGFX_MAX_CORE];
template <>
void populateFactoryTable<UltCommandStreamReceiver<Family>>() {
commandStreamReceiverFactory[IGFX_MAX_CORE + gfxCore] = UltCommandStreamReceiver<Family>::create;
}
struct enableGen11 {
enableGen11() {
populateFactoryTable<UltCommandStreamReceiver<Family>>();
}
};
static enableGen11 enable;
template class UltCommandStreamReceiver<ICLFamily>;
} // namespace NEO