| 468 | } |
| 469 | |
| 470 | shared_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 | |
| 480 | shared_ptr<compute_program> host_compute::add_program_source(const string& source_code, |
| 481 | compile_options options) { |
nothing calls this directly
no test coverage detected