mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
Related-To: NEO-3220 Change-Id: Ib85a1f4fd69b47bc8e819a29cc4adec73bda72e0 Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
17 lines
648 B
C++
17 lines
648 B
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
namespace NEO {
|
|
template <typename... KernelsDescArgsT>
|
|
void BuiltinDispatchInfoBuilder::populate(Context &context, Device &device, EBuiltInOps::Type op, const char *options, KernelsDescArgsT &&... desc) {
|
|
auto src = kernelsLib.getBuiltinsLib().getBuiltinCode(op, BuiltinCode::ECodeType::Any, device);
|
|
prog.reset(BuiltinsLib::createProgramFromCode(src, context, device).release());
|
|
prog->build(0, nullptr, options, nullptr, nullptr, kernelsLib.isCacheingEnabled());
|
|
grabKernels(std::forward<KernelsDescArgsT>(desc)...);
|
|
}
|
|
} // namespace NEO
|