Skip to content
2 changes: 1 addition & 1 deletion GridKit/LinearAlgebra/SparseMatrix/CooMatrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ namespace GridKit
IdxT* map_to_sorted_ = {nullptr}; ///< map from orginal to sorted
IdxT* map_to_dedup_ = {nullptr}; ///< map from sorted to deduplicated

MemoryHandler mem_; ///< Device memory manager object
MemoryManager mem_; ///< Device memory manager object
};
} // namespace LinearAlgebra
} // namespace GridKit
2 changes: 1 addition & 1 deletion GridKit/LinearAlgebra/SparseMatrix/CsrMatrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ namespace GridKit
bool owns_gpu_sparsity_pattern_{false}; ///< for row/col data
bool owns_gpu_values_{false}; ///< for nonzero values

MemoryHandler mem_; ///< Device memory manager object
MemoryManager mem_; ///< Device memory manager object
};
} // namespace LinearAlgebra
} // namespace GridKit
4 changes: 2 additions & 2 deletions GridKit/LinearAlgebra/Vector/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
gridkit_add_library(
dense_vector
SOURCES Vector.cpp
HEADERS Vector.hpp
SOURCES Vector.cpp VectorHandler.cpp VectorHandlerCpu.cpp
HEADERS Vector.hpp VectorHandler.hpp VectorHandlerCpu.hpp
LINK_LIBRARIES GridKit::utilities_logger GridKit::cpu_backend)

# # If no GPU is enabled link to dummy device backend
Expand Down
6 changes: 3 additions & 3 deletions GridKit/LinearAlgebra/Vector/Vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ namespace GridKit
: n_capacity_(n),
k_(k),
n_size_(n),
gpu_updated_(new bool[k]),
cpu_updated_(new bool[k])
gpu_updated_(new bool[static_cast<std::size_t>(k)]),
cpu_updated_(new bool[static_cast<std::size_t>(k)])
{
setHostUpdated(false);
setDeviceUpdated(false);
Expand Down Expand Up @@ -1091,7 +1091,7 @@ namespace GridKit

// template class Vector<double, long int>;
template class Vector<double, size_t>;
// template class Vector<double, int>;
template class Vector<double, int>;

} // namespace LinearAlgebra
} // namespace GridKit
2 changes: 1 addition & 1 deletion GridKit/LinearAlgebra/Vector/Vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace GridKit
bool owns_gpu_data_{true}; ///< data owneship flag for DEVICE data
bool owns_cpu_data_{true}; ///< data ownership flag for HOST data

MemoryHandler mem_; ///< Device memory manager object
MemoryManager mem_; ///< Device memory manager object
};
} // namespace LinearAlgebra
} // namespace GridKit
Loading
Loading