| 878 | } |
| 879 | |
| 880 | code_object_op compile(const value& solution) |
| 881 | { |
| 882 | // 1st pipeline to call |
| 883 | run_high_level_pipeline(); |
| 884 | std::string tuning_cfg_path = string_value_of(MIGRAPHX_MLIR_TUNING_CFG{}); |
| 885 | if(not tuning_cfg_path.empty()) |
| 886 | get_module_tuned(); |
| 887 | if(not solution.is_null()) |
| 888 | set_tuning(solution); |
| 889 | // 2nd pipeline to call |
| 890 | run_backend_pipeline(); |
| 891 | |
| 892 | code_object_op op{}; |
| 893 | op.symbol_name = sym_name; |
| 894 | op.code_object = get_binary(); |
| 895 | std::tie(op.global, op.local) = get_launch_params(); |
| 896 | return op; |
| 897 | } |
| 898 | |
| 899 | void set_gpu_properties(const context& migraphx_ctx) |
| 900 | { |
no test coverage detected