Home
last modified time | relevance | path

Searched refs:KernelPack (Results 1 – 6 of 6) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/kash/
Dkernel_pack.cc44 bool KernelPack::ReadFromJsonFileHelper(std::ifstream &kernel_bin) { in ReadFromJsonFileHelper()
52 void *ptr = static_cast<void *>(new (std::nothrow) uint8_t[sizeof(KernelPack) + bin_size]); in ReadFromJsonFileHelper()
61 if (memset_s(kernel_, sizeof(KernelPack) + bin_size, 0, sizeof(KernelPack) + bin_size) != EOK) { in ReadFromJsonFileHelper()
74 bool KernelPack::ReadFromJsonFile(const std::string &json_f, const std::string &processor) { in ReadFromJsonFile()
89 void *ptr = static_cast<void *>(new (std::nothrow) uint8_t[sizeof(KernelPack) + bin_size]); in ReadFromJsonFile()
172 void KernelPack::ParseKernelJson(const nlohmann::json &js) { in ParseKernelJson()
200 bool KernelPack::LoadKernelMeta(const std::string &json_f) { in LoadKernelMeta()
252 KernelJsonInfo KernelPack::kernel_json_info() const { return kernel_json_info_; } in kernel_json_info()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/
Dkernel.h130 class KernelPack {
132 KernelPack() : json_(nullptr), kernel_(nullptr) {} in KernelPack() function
133 KernelPack(const KernelPack &) = default;
139 ~KernelPack() { in ~KernelPack()
157 using KernelPackPtr = std::shared_ptr<KernelPack>;
Dcommon_utils.cc221 KernelPackPtr kernel_pack = std::make_shared<KernelPack>(); in SearchCache()
245 KernelPackPtr kernel_pack = std::make_shared<KernelPack>(); in InsertCache()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/tbe/
Dtbe_utils.h79 …static uintptr_t GenFuncStub(const KernelPack &kernel_pack, bool force_reload, uint32_t *block_dim,
Dtbe_utils.cc277 uintptr_t KernelManager::GenFuncStub(const mindspore::kernel::KernelPack &kernel_pack, bool force_r… in GenFuncStub()
511 ret = std::make_shared<KernelPack>(); in GetKernelPack()
/third_party/mindspore/tests/ut/cpp/pre_activate/mem_reuse/
Dmem_reuse_test.cc88 auto tbe_kernel_pack_first = std::make_shared<kernel::KernelPack>(); in CreateKernelGraph()
118 auto tbe_kernel_pack_floor = std::make_shared<kernel::KernelPack>(); in CreateKernelGraph()