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