mirror of
https://github.com/intel/compute-runtime.git
synced 2025-11-10 05:49:51 +08:00
17 lines
621 B
C++
17 lines
621 B
C++
/*
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
namespace NEO {
|
|
template <typename... KernelsDescArgsT>
|
|
void BuiltinDispatchInfoBuilder::populate(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, device).release());
|
|
prog->build(0, nullptr, options, nullptr, nullptr, kernelsLib.isCacheingEnabled());
|
|
grabKernels(std::forward<KernelsDescArgsT>(desc)...);
|
|
}
|
|
} // namespace NEO
|