Commit 36ccc5c7 authored by Paul's avatar Paul
Browse files

FOrmat

parent 78da7355
......@@ -184,8 +184,10 @@ void generate_pointwise(cpp_generator& gg, const module& pm, const std::string&
// Add explict conversions
g.fresult(
[](const shape& s) { return "migraphx::convert<" + shape::cpp_type(s.type()) + ">"; });
gg.create_function(
g.generate_module(m).set_attributes({"__device__", "__attribute__((const))"}).set_generic_types(m).set_name(name));
gg.create_function(g.generate_module(m)
.set_attributes({"__device__", "__attribute__((const))"})
.set_generic_types(m)
.set_name(name));
}
std::string generate_pointwise(const module& pm, const std::string& name)
{
......
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