Perhaps --with-64-bit-indices=1 would help this use case? if using latest petsc version - the following build might work:
--with-cc=win32fe_cl --with-cxx=win32fe_cl --with-64-bit-indices=1 --download-metis --download-parmetis .... Satish On Fri, 27 Dec 2024, Matthew Knepley wrote: > On Fri, Dec 27, 2024 at 2:57 AM jun hu via petsc-users < > petsc-users@mcs.anl.gov> wrote: > > > Dear Developer: > > > > I am a PETSc user and I have the following error when calculating 1 > > million grids using PETSc in my windows computer. It came up after > > calculating it for a while, > > > This is an out-of-memory error. Perhaps you are holding onto memory? You > can run a small run using -malloc_debug and > it will show unfreed memory at the end. > > Thanks, > > Matt > > > > and before it could calculate many time steps.I wanted to know what > > caused it. The following is the error message: > > > > [1]PETSC ERROR: --------------------- Error Message > > -------------------------------------------------------------- > > > > [1]PETSC ERROR: MatSeqAIJSetPreallocation_SeqAIJ > > > > [1]PETSC ERROR: See > > https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!eAD-KairPbYZWQ-aKVerz_lz1iMg9eDKuiDquFFftoE6orMSZ_p0mceQ-3CXYflKBORJAbSjb6b5vV6LwXMP$ > > > > <https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!Yvk0IyBSNujv074PP5zehMZgi-UMJ2Gdw8YLIpjym2HIIXPdlZgEriAuhW47O-G879gHiHUPPkFysUrShi1LkTl9ZYck$> > > for trouble shooting. > > > > [1]PETSC ERROR: Petsc Release Version 3.18.6, unknown > > > > [1]PETSC ERROR: Unknown Name on a arch-mswin-c-opt named DESKTOP-B75P775 > > by Administrator Wed Dec 25 15:56:22 2024 > > > > [1]PETSC ERROR: Configure options --with-cc="win32fe cl" > > --with-cxx="win32fe cl" --with-fc=0 --with-debugging=0 > > --with-shared-libraries=0 --with-x=0 --with-quad-precision=0 > > --with-blaslapack-include=/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest/include > > --with-blaslapack-lib="-L/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest/lib/intel64 > > -L/cygdrive/c/PROGRA~2/Intel/oneAPI/compiler/latest/windows/compiler/lib/intel64_win > > mkl_core.lib mkl_intel_thread.lib > > > > mkl_intel_lp64.lib libiomp5md.lib" > > --with-mpi-include=/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/include > > --with-mpi-lib="-L/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/lib/release > > impi.lib" > > --with-mpiexec=/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/bin/mpiexec > > --with-metis-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-metis/install/include > > --with-metis-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-metis/install/lib > > metis.lib" > > --with-parmetis-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-parmetis/install/include > > --with-parmetis-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-parmetis/install/lib > > parmetis.lib" > > --with-hdf5-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-hdf5/install/include > > --with-hdf5-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-hdf5/install/lib > > libhdf5.lib" --ignore-cygwin-link > > > > [5]PETSC ERROR: --------------------- Error Message > > -------------------------------------------------------------- > > > > [5]PETSC ERROR: MatSeqAIJSetPreallocation_SeqAIJ > > > > [5]PETSC ERROR: See > > https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!eAD-KairPbYZWQ-aKVerz_lz1iMg9eDKuiDquFFftoE6orMSZ_p0mceQ-3CXYflKBORJAbSjb6b5vV6LwXMP$ > > > > <https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!Yvk0IyBSNujv074PP5zehMZgi-UMJ2Gdw8YLIpjym2HIIXPdlZgEriAuhW47O-G879gHiHUPPkFysUrShi1LkTl9ZYck$> > > for trouble shooting. > > > > [5]PETSC ERROR: Petsc Release Version 3.18.6, unknown > > > > [5]PETSC ERROR: Unknown Name on a arch-mswin-c-opt named DESKTOP-B75P775 > > by Administrator Wed Dec 25 15:56:22 2024 > > > > [5]PETSC ERROR: Configure options --with-cc="win32fe cl" > > --with-cxx="win32fe cl" --with-fc=0 --with-debugging=0 > > --with-shared-libraries=0 --with-x=0 --with-quad-precision=0 > > --with-blaslapack-include=/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest/include > > --with-blaslapack-lib="-L/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest/lib/intel64 > > -L/cygdrive/c/PROGRA~2/Intel/oneAPI/compiler/latest/windows/compiler/lib/intel64_win > > mkl_core.lib mkl_intel_thread.lib > > > > mkl_intel_lp64.lib libiomp5md.lib" > > --with-mpi-include=/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/include > > --with-mpi-lib="-L/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/lib/release > > impi.lib" > > --with-mpiexec=/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/bin/mpiexec > > --with-metis-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-metis/install/include > > --with-metis-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-metis/install/lib > > metis.lib" > > --with-parmetis-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-parmetis/install/include > > --with-parmetis-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-parmetis/install/lib > > parmetis.lib" > > --with-hdf5-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-hdf5/install/include > > --with-hdf5-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-hdf5/install/lib > > libhdf5.lib" --ignore-cygwin-link > > > > [4]PETSC ERROR: --------------------- Error Message > > -------------------------------------------------------------- > > > > [4]PETSC ERROR: MatSeqAIJSetPreallocation_SeqAIJ > > > > [4]PETSC ERROR: See > > https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!eAD-KairPbYZWQ-aKVerz_lz1iMg9eDKuiDquFFftoE6orMSZ_p0mceQ-3CXYflKBORJAbSjb6b5vV6LwXMP$ > > > > <https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!Yvk0IyBSNujv074PP5zehMZgi-UMJ2Gdw8YLIpjym2HIIXPdlZgEriAuhW47O-G879gHiHUPPkFysUrShi1LkTl9ZYck$> > > for trouble shooting. > > > > [4]PETSC ERROR: Petsc Release Version 3.18.6, unknown > > > > [4]PETSC ERROR: Unknown Name on a arch-mswin-c-opt named DESKTOP-B75P775 > > by Administrator Wed Dec 25 15:56:22 2024 > > > > [4]PETSC ERROR: Configure options --with-cc="win32fe cl" > > --with-cxx="win32fe cl" --with-fc=0 --with-debugging=0 > > --with-shared-libraries=0 --with-x=0 --with-quad-precision=0 > > --with-blaslapack-include=/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest/include > > --with-blaslapack-lib="-L/cygdrive/c/PROGRA~2/Intel/oneAPI/mkl/latest/lib/intel64 > > -L/cygdrive/c/PROGRA~2/Intel/oneAPI/compiler/latest/windows/compiler/lib/intel64_win > > mkl_core.lib mkl_intel_thread.lib > > > > mkl_intel_lp64.lib libiomp5md.lib" > > --with-mpi-include=/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/include > > --with-mpi-lib="-L/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/lib/release > > impi.lib" > > --with-mpiexec=/cygdrive/c/PROGRA~2/Intel/oneAPI/mpi/latest/bin/mpiexec > > --with-metis-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-metis/install/include > > --with-metis-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-metis/install/lib > > metis.lib" > > --with-parmetis-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-parmetis/install/include > > --with-parmetis-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-parmetis/install/lib > > parmetis.lib" > > --with-hdf5-include=/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-hdf5/install/include > > --with-hdf5-lib="-L/cygdrive/d/PETSc/petsc-v3.18.6-pkgconfig//packages/pkg-hdf5/install/lib > > libhdf5.lib" --ignore-cygwin-link > > > > [1]PETSC ERROR: #1 PetscMallocAlign() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\sys\memory\mal.c:68 > > > > [1]PETSC ERROR: #2 PetscMallocA() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\sys\memory\mal.c:410 > > > > [1]PETSC ERROR: #3 MatSeqAIJSetPreallocation_SeqAIJ() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\seq\aij.c:4008 > > > > [1]PETSC ERROR: #4 MatCreateSubMatrix_SeqAIJ() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\seq\aij.c:2588 > > > > [1]PETSC ERROR: #5 MatCreateSubMatrix_MPIAIJ_SameRowColDist() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\mpi\mpiaij.c:3283 > > > > [1]PETSC ERROR: #6 MatCreateSubMatrix_MPIAIJ() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\mpi\mpiaij.c:3390 > > > > [1]PETSC ERROR: #7 MatCreateSubMatrix() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\interface\matrix.c:8382 > > > > [1]PETSC ERROR: #8 SNESSolve_VINEWTONRSLS() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\snes\impls\vi\rs\virs.c:392 > > > > [1]PETSC ERROR: [5]PETSC ERROR: #1 PetscMallocAlign() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\sys\memory\mal.c:68 > > > > [5]PETSC ERROR: #2 PetscMallocA() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\sys\memory\mal.c:410 > > > > [5]PETSC ERROR: #3 MatSeqAIJSetPreallocation_SeqAIJ() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\seq\aij.c:4008 > > > > [5]PETSC ERROR: #4 MatCreateSubMatrix_SeqAIJ() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\seq\aij.c:2588 > > > > [5]PETSC ERROR: #5 MatCreateSubMatrix_MPIAIJ_SameRowColDist() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\mpi\mpiaij.c:3283 > > > > [5]PETSC ERROR: #6 MatCreateSubMatrix_MPIAIJ() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\mpi\mpiaij.c:3390 > > > > [5]PETSC ERROR: #7 MatCreateSubMatrix() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\interface\matrix.c:8382 > > > > [5]PETSC ERROR: #8 SNESSolve_VINEWTONRSLS() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\snes\impls\vi\rs\virs.c:392 > > > > [5]PETSC ERROR: [4]PETSC ERROR: #1 PetscMallocAlign() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\sys\memory\mal.c:68 > > > > [4]PETSC ERROR: #2 PetscMallocA() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\sys\memory\mal.c:410 > > > > [4]PETSC ERROR: #3 MatSeqAIJSetPreallocation_SeqAIJ() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\seq\aij.c:4008 > > > > [4]PETSC ERROR: #4 MatCreateSubMatrix_SeqAIJ() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\seq\aij.c:2588 > > > > [4]PETSC ERROR: #5 MatCreateSubMatrix_MPIAIJ_SameRowColDist() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\mpi\mpiaij.c:3283 > > > > [4]PETSC ERROR: #6 MatCreateSubMatrix_MPIAIJ() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\impls\aij\mpi\mpiaij.c:3390 > > > > #9 SNESSolve() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\snes\interface\snes.c:4692 > > > > [4]PETSC ERROR: #7 MatCreateSubMatrix() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\mat\interface\matrix.c:8382 > > > > [4]PETSC ERROR: #8 SNESSolve_VINEWTONRSLS() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\snes\impls\vi\rs\virs.c:392 > > > > [4]PETSC ERROR: #9 SNESSolve() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\snes\interface\snes.c:4692 > > > > #9 SNESSolve() at > > D:\PETSc\petsc-v3.18.6-pkgconfig\src\snes\interface\snes.c:4692 > > > > > > > >