MCPcopy Create free account
hub / github.com/AdaptiveCpp/AdaptiveCpp / get_kernel_info

Method get_kernel_info

src/runtime/kernel_cache.cpp:417–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417const hcf_kernel_info *
418hcf_cache::get_kernel_info(hcf_object_id obj,
419 std::string_view kernel_name) const {
420 std::lock_guard<std::mutex> lock{_mutex};
421 auto it = _hcf_kernel_info.find(generate_info_id(obj, kernel_name));
422 if(it == _hcf_kernel_info.end())
423 return nullptr;
424 return it->second.get();
425}
426
427const hcf_kernel_info *
428hcf_cache::get_kernel_info(hcf_object_id obj,

Callers 3

extract_kernel_infoFunction · 0.80
mainFunction · 0.80
getMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected