2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2019-02-27 11:39:32 +01:00
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2018-08-07 09:22:55 +02:00
|
|
|
#pragma once
|
|
|
|
|
#include "runtime/built_ins/built_ins.h"
|
|
|
|
|
#include "runtime/built_ins/builtins_dispatch_builder.h"
|
|
|
|
|
#include "runtime/helpers/dispatch_info_builder.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2018-08-07 09:22:55 +02:00
|
|
|
#include <memory>
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2019-07-09 20:46:14 +02:00
|
|
|
template <>
|
|
|
|
|
class BuiltInOp<EBuiltInOps::AuxTranslation> : public BuiltinDispatchInfoBuilder {
|
2018-08-07 09:22:55 +02:00
|
|
|
public:
|
|
|
|
|
BuiltInOp(BuiltIns &kernelsLib, Context &context, Device &device);
|
|
|
|
|
bool buildDispatchInfos(MultiDispatchInfo &multiDispatchInfo, const BuiltinOpParams &operationParams) const override;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
void resizeKernelInstances(size_t size) const;
|
|
|
|
|
Kernel *baseKernel = nullptr;
|
|
|
|
|
mutable std::vector<std::unique_ptr<Kernel>> convertToNonAuxKernel;
|
|
|
|
|
mutable std::vector<std::unique_ptr<Kernel>> convertToAuxKernel;
|
|
|
|
|
};
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|