MCPcopy Create free account
hub / github.com/a2flo/floor / get_function

Method get_function

src/device/device_program.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24device_program::~device_program() {}
25
26std::shared_ptr<device_function> device_program::get_function(const std::string_view& func_name) const {
27 const auto iter = find(cbegin(function_names), cend(function_names), func_name);
28 if(iter == cend(function_names)) return {};
29 return functions[(size_t)distance(cbegin(function_names), iter)];
30}
31
32bool device_program::should_ignore_function_for_device(const device& dev, const toolchain::function_info& func_info) const {
33 if (func_info.has_valid_required_simd_width()) {

Callers 1

Calls 2

findFunction · 0.85
distanceFunction · 0.85

Tested by

no test coverage detected