Skip to content

Commit

Permalink
atlas warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Feb 20, 2025
1 parent d08b35a commit 52a1276
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/atlas/array/native/NativeArray.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ Array* Array::wrap(Value* data, const ArrayShape& shape) {
}
template <typename Value>
Array* Array::wrap(Value* data, const ArraySpec& spec) {
size_t size = spec.size();
return new ArrayT<Value>(new native::WrappedDataStore<Value>(data, spec), spec);
}

Expand Down
4 changes: 2 additions & 2 deletions src/atlas/array/native/NativeDataStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ template <typename Value>
class WrappedDataStore : public ArrayDataStore {
public:
WrappedDataStore(Value* host_data, const ArraySpec& spec):
size_(spec.size()),
host_data_(host_data),
size_(spec.size()),
device_memory_resource_(memory::device::traced_resource()),
device_allocator_{device_memory_resource_.get()}
{
Expand Down Expand Up @@ -421,8 +421,8 @@ class WrappedDataStore : public ArrayDataStore {
}

private:
size_t size_;
Value* host_data_;
size_t size_;

std::unique_ptr<pluto::memory_resource> device_memory_resource_;
mutable pluto::allocator<Value> device_allocator_;
Expand Down

0 comments on commit 52a1276

Please sign in to comment.