Skip to content

Commit

Permalink
port to new interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Nov 8, 2023
1 parent f123f6a commit b7e6bd0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,10 @@ dispatch_memory_binary_df(const conduit::Node &l_field,
r_field.schema().to_string());
}

MemoryInterface<conduit::float32> l_farray(l_field);
MemoryInterface<conduit::float32> r_farray(r_field);
MemoryAccessor<conduit::float32> l_accessor = l_farray.accessor(mem_space, component);
MemoryAccessor<conduit::float32> r_accessor = r_farray.accessor(mem_space, component);
MCArray<conduit::float32> l_farray(l_field);
MCArray<conduit::float32> r_farray(r_field);
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,10 +530,10 @@ dispatch_memory_binary_df(const conduit::Node &l_field,
r_field.schema().to_string());
}

MemoryInterface<conduit::float64> l_farray(l_field);
MemoryInterface<conduit::float64> r_farray(r_field);
MemoryAccessor<conduit::float64> l_accessor = l_farray.accessor(mem_space, component);
MemoryAccessor<conduit::float64> r_accessor = r_farray.accessor(mem_space, component);
MCArray<conduit::float64> l_farray(l_field);
MCArray<conduit::float64> r_farray(r_field);
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);
}
else if(field_is_int32(l_field))
Expand All @@ -546,10 +546,10 @@ dispatch_memory_binary_df(const conduit::Node &l_field,
r_field.schema().to_string());
}

MemoryInterface<conduit::int32> l_farray(l_field);
MemoryInterface<conduit::int32> r_farray(r_field);
MemoryAccessor<conduit::int32> l_accessor = l_farray.accessor(mem_space, component);
MemoryAccessor<conduit::int32> r_accessor = r_farray.accessor(mem_space, component);
MCArray<conduit::int32> l_farray(l_field);
MCArray<conduit::int32> r_farray(r_field);
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);
}
else if(field_is_int64(l_field))
Expand All @@ -563,10 +563,10 @@ dispatch_memory_binary_df(const conduit::Node &l_field,
r_field.schema().to_string());
}

MemoryInterface<conduit::int64> l_farray(l_field);
MemoryInterface<conduit::int64> r_farray(r_field);
MemoryAccessor<conduit::int64> l_accessor = l_farray.accessor(mem_space, component);
MemoryAccessor<conduit::int64> r_accessor = r_farray.accessor(mem_space, component);
MCArray<conduit::int64> l_farray(l_field);
MCArray<conduit::int64> r_farray(r_field);
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);
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ struct SumFunctor
struct DFAddFunctor
{
template<typename T, typename Exec>
conduit::Node operator()(const MemoryAccessor<T> l_accessor,
const MemoryAccessor<T> r_accessor,
conduit::Node operator()(const DeviceAccessor<T> l_accessor,
const DeviceAccessor<T> r_accessor,
const Exec &) const
{

Expand Down

0 comments on commit b7e6bd0

Please sign in to comment.