MCPcopy Create free account
hub / github.com/MegEngine/MegCC / add_workspace_size

Method add_workspace_size

compiler/test/kernel/common/src/target_module.cpp:64–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void TargetModule::add_workspace_size(
65 const std::string& workspace_size_symbol, size_t workspace_size) {
66 if (m_jit_workspace_size_map.count(workspace_size_symbol) == 0) {
67 m_jit_workspace_size_map[workspace_size_symbol] = workspace_size;
68 }
69}
70
71void TargetModule::add_binary(const std::string& sig, const std::vector<uint8_t>& vec) {
72 if (m_kern_bin_map.find(sig) == m_kern_bin_map.end()) {

Callers 1

gen_kernelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected