Commit 6b80ea7a authored by Paul's avatar Paul
Browse files

Formatting

parent 211bfd05
...@@ -10,7 +10,7 @@ namespace gpu { ...@@ -10,7 +10,7 @@ namespace gpu {
struct write_literals struct write_literals
{ {
context * ctx = nullptr; context* ctx = nullptr;
std::string name() const { return "gpu::write_literals"; } std::string name() const { return "gpu::write_literals"; }
void apply(program& p) const; void apply(program& p) const;
......
...@@ -30,7 +30,7 @@ void write_literals::apply(program& p) const ...@@ -30,7 +30,7 @@ void write_literals::apply(program& p) const
{ {
if(ins->op.name() == "@literal") if(ins->op.name() == "@literal")
{ {
argument a = to_gpu(ins->lit.get_argument()); argument a = to_gpu(ins->lit.get_argument());
std::size_t n = ctx->literals.size(); std::size_t n = ctx->literals.size();
ctx->literals.push_back(a); ctx->literals.push_back(a);
p.replace_instruction(ins, hip_load_literal{a.get_shape(), n}); p.replace_instruction(ins, hip_load_literal{a.get_shape(), n});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment