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

Function for_each_device_image

src/runtime/kernel_cache.cpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28template<class F>
29void for_each_device_image(const common::hcf_container& hcf, F&& handler) {
30 if(hcf.root_node()->has_subnode("images")) {
31 auto* img_node = hcf.root_node()->get_subnode("images");
32 auto image_names = img_node->get_subnodes();
33 for(const auto& image_name : image_names) {
34 handler(img_node->get_subnode(image_name));
35 }
36 }
37}
38
39template<class F>
40void for_each_exported_symbol_list(const common::hcf_container& hcf, F&& handler) {

Callers 1

Calls 5

has_subnodeMethod · 0.80
root_nodeMethod · 0.80
get_subnodeMethod · 0.80
get_subnodesMethod · 0.80
handlerClass · 0.50

Tested by

no test coverage detected