MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / generate_args_hpp

Function generate_args_hpp

src/targets/gpu/compile_hip_code_object.cpp:63–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static std::string generate_args_hpp(const std::vector<shape>& inputs)
64{
65 std::string inner;
66 for(std::size_t i = 0; i < inputs.size(); i++)
67 {
68 inner += generate_make_tensor(i, inputs[i]);
69 }
70 const std::string args_hpp = R"__migraphx__(
71#ifndef MIGRAPHX_GUARD_AUTO_ARGS_HPP
72#define MIGRAPHX_GUARD_AUTO_ARGS_HPP
73
74#include <migraphx/kernels/args.hpp>
75#include <migraphx/kernels/tensor_view.hpp>
76#include <migraphx/kernels/types.hpp>
77
78namespace migraphx {
79
80__content__
81
82} // namespace migraphx
83#endif
84)__migraphx__";
85 return replace_string(args_hpp, "__content__", inner);
86}
87
88static std::vector<std::string> get_compiler_warnings()
89{

Callers 1

compile_hip_code_objectFunction · 0.85

Calls 3

generate_make_tensorFunction · 0.85
replace_stringFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected