mirror of
https://github.com/intel/compute-runtime.git
synced 2025-06-28 17:58:30 +08:00

Current behaviour will be detecd path existence Related-To: NEO-4262 Signed-off-by: Diedrich, Kamil <kamil.diedrich@intel.com>
21 lines
721 B
C++
21 lines
721 B
C++
/*
|
|
* Copyright (C) 2020-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "opencl/source/cl_device/cl_device.h"
|
|
|
|
namespace NEO {
|
|
template <typename... KernelsDescArgsT>
|
|
void BuiltinDispatchInfoBuilder::populate(EBuiltInOps::Type op, ConstStringRef options, KernelsDescArgsT &&...desc) {
|
|
auto src = kernelsLib.getBuiltinsLib().getBuiltinCode(op, BuiltinCode::ECodeType::Any, clDevice.getDevice());
|
|
ClDeviceVector deviceVector;
|
|
deviceVector.push_back(&clDevice);
|
|
prog.reset(BuiltinDispatchInfoBuilder::createProgramFromCode(src, deviceVector).release());
|
|
prog->build(deviceVector, options.data());
|
|
grabKernels(std::forward<KernelsDescArgsT>(desc)...);
|
|
}
|
|
} // namespace NEO
|