Skip to content

Commit

Permalink
use proper node as mcarray input
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Nov 8, 2023
1 parent 9222dea commit d93b340
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,8 @@ dispatch_memory_binary_df(const conduit::Node &l_field,
r_field.schema().to_string());
}

MCArray<conduit::float32> l_farray(l_field);
MCArray<conduit::float32> r_farray(r_field);
MCArray<conduit::float32> l_farray(l_field["values"]);
MCArray<conduit::float32> r_farray(r_field["values"]);
DeviceAccessor<conduit::float32> l_accessor = l_farray.accessor(mem_space, component);
DeviceAccessor<conduit::float32> r_accessor = r_farray.accessor(mem_space, component);
res = func(l_accessor, r_accessor, exec);
Expand All @@ -530,8 +530,8 @@ dispatch_memory_binary_df(const conduit::Node &l_field,
r_field.schema().to_string());
}

MCArray<conduit::float64> l_farray(l_field);
MCArray<conduit::float64> r_farray(r_field);
MCArray<conduit::float64> l_farray(l_field["values"]);
MCArray<conduit::float64> r_farray(r_field["values"]);
DeviceAccessor<conduit::float64> l_accessor = l_farray.accessor(mem_space, component);
DeviceAccessor<conduit::float64> r_accessor = r_farray.accessor(mem_space, component);
res = func(l_accessor, r_accessor, exec);
Expand All @@ -546,8 +546,8 @@ dispatch_memory_binary_df(const conduit::Node &l_field,
r_field.schema().to_string());
}

MCArray<conduit::int32> l_farray(l_field);
MCArray<conduit::int32> r_farray(r_field);
MCArray<conduit::int32> l_farray(l_field["values"]);
MCArray<conduit::int32> r_farray(r_field["values"]);
DeviceAccessor<conduit::int32> l_accessor = l_farray.accessor(mem_space, component);
DeviceAccessor<conduit::int32> r_accessor = r_farray.accessor(mem_space, component);
res = func(l_accessor, r_accessor, exec);
Expand All @@ -563,8 +563,8 @@ dispatch_memory_binary_df(const conduit::Node &l_field,
r_field.schema().to_string());
}

MCArray<conduit::int64> l_farray(l_field);
MCArray<conduit::int64> r_farray(r_field);
MCArray<conduit::int64> l_farray(l_field["values"]);
MCArray<conduit::int64> r_farray(r_field["values"]);
DeviceAccessor<conduit::int64> l_accessor = l_farray.accessor(mem_space, component);
DeviceAccessor<conduit::int64> r_accessor = r_farray.accessor(mem_space, component);
res = func(l_accessor, r_accessor, exec);
Expand Down

0 comments on commit d93b340

Please sign in to comment.