You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And vector B = 1 2 3 4 5 6
The expected result X will be 6 5 4 3 2 1
But the result I got is very strange
With mpi world size = 1, X = 1.625 3.250 4.875 6.500 8.125 9.750
With mpi world size = 2, X = 1.4 2.8 4.2 1.4 2.8 4.2
I tried to modify this line from HYPRE_IJMatrixCreate(MPI_COMM_WORLD, ilower, iupper, ilower, iupper, &A);
to HYPRE_IJMatrixCreate(MPI_COMM_WORLD, ilower, iupper, 0, N - 1, &A);
but the results are also strange.
I'm using Visual Studio 2022 on Windows with Intel MPI library.
The hypre install cmake config is: cmake -S ".." -B . -G "Visual Studio 17 2022" -DHYPRE_ENABLE_ONEMKLBLAS=ON -DHYPRE_ENABLE_ONEMKLRAND=ON -DHYPRE_ENABLE_ONEMKLSPARSE=ON -DHYPRE_HAVE_MPI=ON -DHYPRE_WITH_MPI=ON -DHYPRE_USING_HOST_MEMORY=ON -DHYPRE_USING_HYPRE_BLAS=ON -DHYPRE_USING_HYPRE_LAPACK=ON
The text was updated successfully, but these errors were encountered:
hhrecode001
changed the title
Solver returns unexpected result
HYPRE_ParCSRPCGSolve returns unexpected result
Dec 3, 2024
I'm trying to use Hypre to solve a system of linear equations:
With N=6, the matrix A will be
And vector B =
1 2 3 4 5 6
The expected result X will be
6 5 4 3 2 1
But the result I got is very strange
With mpi world size = 1, X =
1.625 3.250 4.875 6.500 8.125 9.750
With mpi world size = 2, X =
1.4 2.8 4.2 1.4 2.8 4.2
I tried to modify this line from
HYPRE_IJMatrixCreate(MPI_COMM_WORLD, ilower, iupper, ilower, iupper, &A);
to
HYPRE_IJMatrixCreate(MPI_COMM_WORLD, ilower, iupper, 0, N - 1, &A);
but the results are also strange.
I'm using Visual Studio 2022 on Windows with Intel MPI library.
The hypre install cmake config is: cmake -S ".." -B . -G "Visual Studio 17 2022" -DHYPRE_ENABLE_ONEMKLBLAS=ON -DHYPRE_ENABLE_ONEMKLRAND=ON -DHYPRE_ENABLE_ONEMKLSPARSE=ON -DHYPRE_HAVE_MPI=ON -DHYPRE_WITH_MPI=ON -DHYPRE_USING_HOST_MEMORY=ON -DHYPRE_USING_HYPRE_BLAS=ON -DHYPRE_USING_HYPRE_LAPACK=ON
The text was updated successfully, but these errors were encountered: