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

Method get_image_info

src/runtime/kernel_cache.cpp:433–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433const hcf_image_info *
434hcf_cache::get_image_info(hcf_object_id obj,
435 const std::string &image_name) const {
436 std::lock_guard<std::mutex> lock{_mutex};
437 auto it = _hcf_image_info.find(generate_info_id(obj, image_name));
438 if(it == _hcf_image_info.end())
439 return nullptr;
440 return it->second.get();
441}
442
443
444

Callers 2

mainFunction · 0.80
select_imageFunction · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected