Skip to content

Commit

Permalink
Matrix rows are already sorted in AMGCL, do not sort them twice !
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLevy committed Dec 16, 2024
1 parent a42e3d3 commit 9ea057a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib/geogram/NL/nl_amgcl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,6 @@ template <class Backend> NLboolean nlSolveAMGCL_generic() {
size_t(n), (rowptr_t*)M->rowptr, (colind_t *)M->colind, M->val
);

amgcl::backend::sort_rows(*M_amgcl);

GEO::Stopwatch* Wbuild = new GEO::Stopwatch("AMGCL build", ctxt->verbose);

if(nlExtensionIsInitialized_CUDA()) {
Expand Down
1 change: 1 addition & 0 deletions src/lib/geogram/NL/nl_cuda.c
Original file line number Diff line number Diff line change
Expand Up @@ -1718,6 +1718,7 @@ static NLCUDASparseMatrix* CreateCUDASlicesFromCRSMatrixSlices(
/**
* \brief Gets the amount of memory required to store a matrix in CUDA
* \param[in] M a pointer to a CRS matrix
* \param[in] with_buffer true if one needs to allocate a buffer for X and Y
* \return the required GPU RAM to store \p M on the GPU
*/
static size_t nlCUDAMatrixNeededMem(NLCRSMatrix* M, NLboolean with_buffer) {
Expand Down

0 comments on commit 9ea057a

Please sign in to comment.