Skip to content

Commit

Permalink
Fix OpenCLStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
Pencilcaseman committed Sep 8, 2023
1 parent 2999f58 commit af6a884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion librapid/include/librapid/opencl/openclStorage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ namespace librapid {

// Copy data
global::openCLQueue.enqueueCopyBuffer(
other.m_buffer, m_buffer, 0, 0, std::min(m_size, oldSize) * sizeof(Scalar));
other.m_buffer, m_buffer, 0, 0, m_size * sizeof(Scalar));
}
return *this;
}
Expand Down

0 comments on commit af6a884

Please sign in to comment.