Targets
target
-
struct migraphx::internal::target
An interface for a compilation target.
Public Functions
-
std::string name() const
A unique name used to identify the target.
-
std::vector<pass> get_passes(context &ctx, const compile_options &options) const
The transformation pass to be run during compilation.
- Parameters
ctx – This is the target-dependent context that is created by
get_contextoptions – Compiling options passed in by the user
- Returns
The passes to be ran
-
context get_context() const
Construct a context for the target.
- Returns
The context to be used during compilation and execution.
-
argument copy_to(const argument &arg) const
copy an argument to the current target.
- Parameters
arg – Input argument to be copied to the target
- Returns
Argument in the target.
-
std::string name() const
gpu::target
-
struct migraphx::internal::gpu::target
cpu::target
-
struct migraphx::internal::cpu::target