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

Method add_program_source

compute/host/host_compute.cpp:470–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468}
469
470shared_ptr<compute_program> host_compute::add_program_source(const string& source_code,
471 const string additional_options) {
472 if (!has_host_device_support()) {
473 return make_shared<host_program>(*fastest_device, host_program::program_map_type {});
474 }
475
476 compile_options options { .cli = additional_options };
477 return add_program_source(source_code, options);
478}
479
480shared_ptr<compute_program> host_compute::add_program_source(const string& source_code,
481 compile_options options) {

Callers

nothing calls this directly

Calls 4

compile_programFunction · 0.85
reserveMethod · 0.80
insert_or_assignMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected