Home
last modified time | relevance | path

Searched refs:kernel_pack (Results 1 – 17 of 17) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/akg/gpu/
Dakg_gpu_kernel_mod.cc36 CUresult GpuKernelManager::GetFunction(const KernelPackPtr &kernel_pack, bool force_reload, in GetFunction() argument
38 if (kernel_pack->GetJson() == nullptr || kernel_pack->GetJson()->contents == nullptr || in GetFunction()
39 kernel_pack->GetKernel() == nullptr || kernel_pack->GetKernel()->contents == nullptr) { in GetFunction()
43 auto js = nlohmann::json::parse(kernel_pack->GetJson()->contents, in GetFunction()
44 kernel_pack->GetJson()->contents + kernel_pack->GetJson()->len); in GetFunction()
74 …CUresult result = cuModuleLoadDataEx(&module, kernel_pack->GetKernel()->contents, 1, options, valu… in GetFunction()
88 GpuKernelMod::GpuKernelMod(const KernelPackPtr &kernel_pack) : kernel_pack_(kernel_pack) {} in GpuKernelMod() argument
Dakg_gpu_kernel_build.cc39 void AkgGpuKernelBuilder::AkgSetKernelMod(const KernelPackPtr &kernel_pack, in AkgSetKernelMod() argument
41 auto kernel_mod_ptr = std::make_shared<GpuKernelMod>(kernel_pack); in AkgSetKernelMod()
42 auto kernel_json_info = kernel_pack->kernel_json_info(); in AkgSetKernelMod()
Dakg_gpu_kernel_mod.h48 …CUresult GetFunction(const KernelPackPtr &kernel_pack, bool force_reload, std::vector<uint32_t> *t…
58 explicit GpuKernelMod(const KernelPackPtr &kernel_pack);
Dakg_gpu_kernel_build.h33 …void AkgSetKernelMod(const KernelPackPtr &kernel_pack, const AkgKernelJsonGenerator &json_generato…
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/tbe/
Dtbe_kernel_parallel_build.cc177 auto kernel_pack = TbeUtils::InsertCache(json_name, processor); in TaskFinishProcess() local
178 if (kernel_pack == nullptr) { in TaskFinishProcess()
189 …= GenKernelMod(task_iter->second.input_size_list, task_iter->second.output_size_list, kernel_pack); in TaskFinishProcess()
259 auto kernel_pack = TbeUtils::SearchCache(task_info.json_name); in GenSameFusionOpKernelMod() local
260 if (kernel_pack != nullptr) { in GenSameFusionOpKernelMod()
261 …uto kernel_mode = GenKernelMod(task_info.input_size_list, task_info.output_size_list, kernel_pack); in GenSameFusionOpKernelMod()
288 … const mindspore::kernel::KernelPackPtr &kernel_pack) const { in GenKernelMod()
289 MS_EXCEPTION_IF_NULL(kernel_pack); in GenKernelMod()
290 auto kernel_json_info = kernel_pack->kernel_json_info(); in GenKernelMod()
291 auto kernel_mod_ptr = std::make_shared<TbeKernelMod>(kernel_pack); in GenKernelMod()
Dtbe_utils.cc277 uintptr_t KernelManager::GenFuncStub(const mindspore::kernel::KernelPack &kernel_pack, bool force_r… in GenFuncStub() argument
281 auto kernel = kernel_pack.GetKernel(); in GenFuncStub()
289 auto kernel_json_info = kernel_pack.kernel_json_info(); in GenFuncStub()
307 if (BinaryRegister((*kernel_pack.GetKernel()), &module, magic, dynamic_flag) != 0) { in GenFuncStub()
331 std::string KernelManager::GetStubFuncName(const KernelPackPtr &kernel_pack) { in GetStubFuncName() argument
332 MS_EXCEPTION_IF_NULL(kernel_pack); in GetStubFuncName()
333 auto kernel_json_info = kernel_pack->kernel_json_info(); in GetStubFuncName()
Dtbe_kernel_mod.h31 explicit TbeKernelMod(KernelPackPtr kernel_pack) : kernel_pack_(std::move(kernel_pack)) {} in TbeKernelMod() argument
Dtbe_utils.h79 …static uintptr_t GenFuncStub(const KernelPack &kernel_pack, bool force_reload, uint32_t *block_dim,
82 static std::string GetStubFuncName(const KernelPackPtr &kernel_pack);
Dtbe_kernel_parallel_build.h63 const KernelPackPtr &kernel_pack) const;
Dascend_kernel_compile.cc679 auto kernel_pack = TbeUtils::SearchCache(json_name); in AscendFusionOpCompile() local
680 if (kernel_pack != nullptr) { in AscendFusionOpCompile()
681 … auto kernel_mod = build_manager_->GenKernelMod(input_size_list, output_size_list, kernel_pack); in AscendFusionOpCompile()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/akg/ascend/
Dakg_ascend_kernel_build.cc37 void AkgAscendKernelBuilder::AkgSetKernelMod(const KernelPackPtr &kernel_pack, in AkgSetKernelMod() argument
39 auto kernel_mod_ptr = std::make_shared<AkgKernelMod>(kernel_pack); in AkgSetKernelMod()
40 auto kernel_json_info = kernel_pack->kernel_json_info(); in AkgSetKernelMod()
Dakg_ascend_kernel_mod.cc38 AkgKernelMod::AkgKernelMod(const KernelPackPtr &kernel_pack) : kernel_pack_(kernel_pack) {} in AkgKernelMod() argument
Dakg_ascend_kernel_build.h37 …void AkgSetKernelMod(const KernelPackPtr &kernel_pack, const AkgKernelJsonGenerator &json_generato…
Dakg_ascend_kernel_mod.h29 explicit AkgKernelMod(const KernelPackPtr &kernel_pack);
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/
Dkernel_fusion.cc95 auto kernel_pack = TbeUtils::SearchCache(json_name); in KernelFusion() local
96 …if (kernel_pack != nullptr && ((!offline_tune.empty() && offline_tune != "true") || tune_mode == "… in KernelFusion()
97 auto kernel_mod = build_manger->GenKernelMod(input_size_list, output_size_list, kernel_pack); in KernelFusion()
Dcommon_utils.cc221 KernelPackPtr kernel_pack = std::make_shared<KernelPack>(); in SearchCache() local
223 if (!kernel_pack->ReadFromJsonFile(kernel_json, processor)) { in SearchCache()
227 return kernel_pack; in SearchCache()
245 KernelPackPtr kernel_pack = std::make_shared<KernelPack>(); in InsertCache() local
246 if (!kernel_pack->ReadFromJsonFile(kernel_json, processor)) { in InsertCache()
258 return kernel_pack; in InsertCache()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/akg/
Dakg_kernel_build.h44 …virtual void AkgSetKernelMod(const KernelPackPtr &kernel_pack, const AkgKernelJsonGenerator &json_…