mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Updating files modified in 2018 only. Older files remain with old style copyright header Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
34 lines
766 B
C++
34 lines
766 B
C++
/*
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/helpers/base_object.h"
|
|
#include "unit_tests/libult/ult_command_stream_receiver.h"
|
|
|
|
namespace OCLRT {
|
|
|
|
typedef CNLFamily Family;
|
|
|
|
static auto gfxCore = IGFX_GEN10_CORE;
|
|
|
|
extern CommandStreamReceiverCreateFunc commandStreamReceiverFactory[2 * IGFX_MAX_CORE];
|
|
|
|
template <>
|
|
void populateFactoryTable<UltCommandStreamReceiver<Family>>() {
|
|
commandStreamReceiverFactory[IGFX_MAX_CORE + gfxCore] = UltCommandStreamReceiver<Family>::create;
|
|
}
|
|
|
|
struct enableGen10 {
|
|
enableGen10() {
|
|
populateFactoryTable<UltCommandStreamReceiver<Family>>();
|
|
}
|
|
};
|
|
|
|
static enableGen10 enable;
|
|
|
|
template class UltCommandStreamReceiver<CNLFamily>;
|
|
} // namespace OCLRT
|