| 203 | } |
| 204 | |
| 205 | operation |
| 206 | compile_hip_code_object(context& ctx, const std::string& content, hip_compile_options options) |
| 207 | { |
| 208 | assert(not options.inputs.empty()); |
| 209 | assert(options.inputs.size() == options.virtual_inputs.size() or |
| 210 | options.virtual_inputs.empty()); |
| 211 | auto args_hpp = |
| 212 | generate_args_hpp(options.virtual_inputs.empty() ? options.inputs : options.virtual_inputs); |
| 213 | options.additional_src_files.emplace_back("args.hpp", args_hpp); |
| 214 | |
| 215 | return code_object_op{value::binary{compile_hip_raw(ctx, content, options)}, |
| 216 | options.kernel_name, |
| 217 | options.global, |
| 218 | options.local, |
| 219 | options.inputs, |
| 220 | options.output, |
| 221 | options.output_arg}; |
| 222 | } |
| 223 | |
| 224 | } // namespace gpu |
| 225 | } // namespace MIGRAPHX_INLINE_NS |
no test coverage detected