<div dir="ltr"><div dir="ltr"><div dir="ltr"><br clear="all"><div>Dear all,</div><div><br></div><div>I am trying to use PETSc with GPU. I have followed instructions laid down at <a href="https://www.mcs.anl.gov/petsc/features/gpus.html">https://www.mcs.anl.gov/petsc/features/gpus.html</a>. When I run my code, it doesn't recognize the mat_type MATSEQAIJCUSPARSE. Here is the log:</div><div><br></div><div><div>mpiexec -n 1 ./GMRES_PETSc -fin ../MM2PETScMatConverter/HV15R.bin -ksp_monitor -pc_type ilu -pc_factor_levels 0 -ksp_gmres_restart 200 -ksp_gmres_preallocate -vec_type VECSEQCUDA -mat_type MATSEQAIJCUSPARSE</div><div>Processes: 1</div><div>[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</div><div>[0]PETSC ERROR: Unknown type. Check for miss-spelling or missing package: <a href="http://www.mcs.anl.gov/petsc/documentation/installation.html#external">http://www.mcs.anl.gov/petsc/documentation/installation.html#external</a></div><div>[0]PETSC ERROR: Unknown Mat type given: MATSEQAIJCUSPARSE</div><div>[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html">http://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.</div><div>[0]PETSC ERROR: Petsc Development GIT revision: v3.10.3-1369-g58fe69bfc8  GIT Date: 2019-01-25 22:25:25 -0600</div><div>[0]PETSC ERROR: ./GMRES_PETSc on a arch-linux2-c-debug named ip-172-31-86-226 by ubuntu Mon Jan 28 18:10:34 2019</div><div>[0]PETSC ERROR: Configure options --with-cc=gcc --download-mpich --with-cuda=1 --with-cuda-dir=/usr/local/cuda-10.0/ --download-fblaslapack=1</div><div>[0]PETSC ERROR: #1 MatSetType() line 61 in /home/ubuntu/petsc/src/mat/interface/matreg.c</div><div>[0]PETSC ERROR: #2 MatSetFromOptions() line 230 in /home/ubuntu/petsc/src/mat/utils/gcreate.c</div><div>[0]PETSC ERROR: #3 main() line 48 in /home/ubuntu/koc-aramco/src_GPU/GMRES_PETSc/main.c</div><div>[0]PETSC ERROR: PETSc Option Table entries:</div><div>[0]PETSC ERROR: -fin ../MM2PETScMatConverter/HV15R.bin</div><div>[0]PETSC ERROR: -ksp_gmres_preallocate</div><div>[0]PETSC ERROR: -ksp_gmres_restart 200</div><div>[0]PETSC ERROR: -ksp_monitor</div><div>[0]PETSC ERROR: -mat_type MATSEQAIJCUSPARSE</div><div>[0]PETSC ERROR: -pc_factor_levels 0</div><div>[0]PETSC ERROR: -pc_type ilu</div><div>[0]PETSC ERROR: -vec_type VECSEQCUDA</div><div>[0]PETSC ERROR: ----------------End of Error Message -------send entire error message to petsc-maint@mcs.anl.gov----------</div><div>application called MPI_Abort(MPI_COMM_WORLD, 86) - process 0</div><div>[cli_0]: readline failed</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: Caught signal number 15 Terminate: Some process (or the batch system) has told this process to end</div><div>[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger</div><div>[0]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind">http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind</a></div><div>[0]PETSC ERROR: or try <a href="http://valgrind.org">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find memory corruption errors</div><div>[0]PETSC ERROR: likely location of problem given in stack below</div><div>[0]PETSC ERROR: ---------------------  Stack Frames ------------------------------------</div><div>[0]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,</div><div>[0]PETSC ERROR:       INSTEAD the line number of the start of the function</div><div>[0]PETSC ERROR:       is given.</div><div>[0]PETSC ERROR: [0] PetscError line 352 /home/ubuntu/petsc/src/sys/error/err.c</div><div>[0]PETSC ERROR: [0] MatSetType line 42 /home/ubuntu/petsc/src/mat/interface/matreg.c</div><div>[0]PETSC ERROR: [0] MatSetFromOptions line 214 /home/ubuntu/petsc/src/mat/utils/gcreate.c</div><div>[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</div><div>[0]PETSC ERROR: Signal received</div><div>[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html">http://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.</div><div>[0]PETSC ERROR: Petsc Development GIT revision: v3.10.3-1369-g58fe69bfc8  GIT Date: 2019-01-25 22:25:25 -0600</div><div>[0]PETSC ERROR: ./GMRES_PETSc on a arch-linux2-c-debug named ip-172-31-86-226 by ubuntu Mon Jan 28 18:10:34 2019</div><div>[0]PETSC ERROR: Configure options --with-cc=gcc --download-mpich --with-cuda=1 --with-cuda-dir=/usr/local/cuda-10.0/ --download-fblaslapack=1</div><div>[0]PETSC ERROR: #4 User provided function() line 0 in  unknown file</div><div>application called MPI_Abort(MPI_COMM_WORLD, 59) - process 0</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: Caught signal number 13 Broken Pipe: Likely while reading or writing to a socket</div><div>[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger</div><div>[0]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind">http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind</a></div><div>[0]PETSC ERROR: or try <a href="http://valgrind.org">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find memory corruption errors</div><div>[0]PETSC ERROR: likely location of problem given in stack below</div><div>[0]PETSC ERROR: ---------------------  Stack Frames ------------------------------------</div><div>[0]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,</div><div>[0]PETSC ERROR:       INSTEAD the line number of the start of the function</div><div>[0]PETSC ERROR:       is given.</div><div>[0]PETSC ERROR: [0] PetscError line 352 /home/ubuntu/petsc/src/sys/error/err.c</div><div>[0]PETSC ERROR: [0] MatSetType line 42 /home/ubuntu/petsc/src/mat/interface/matreg.c</div><div>[0]PETSC ERROR: [0] MatSetFromOptions line 214 /home/ubuntu/petsc/src/mat/utils/gcreate.c</div><div>[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------</div><div>[0]PETSC ERROR: Signal received</div><div>[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html">http://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.</div><div>[0]PETSC ERROR: Petsc Development GIT revision: v3.10.3-1369-g58fe69bfc8  GIT Date: 2019-01-25 22:25:25 -0600</div><div>[0]PETSC ERROR: ./GMRES_PETSc on a arch-linux2-c-debug named ip-172-31-86-226 by ubuntu Mon Jan 28 18:10:34 2019</div><div>[0]PETSC ERROR: Configure options --with-cc=gcc --download-mpich --with-cuda=1 --with-cuda-dir=/usr/local/cuda-10.0/ --download-fblaslapack=1</div><div>[0]PETSC ERROR: #5 User provided function() line 0 in  unknown file</div><div>application called MPI_Abort(MPI_COMM_WORLD, 59) - process 0</div><div>[cli_0]: write_line error; fd=9 buf=:cmd=abort exitcode=59</div><div>:</div><div>system msg for write_line failure : Broken pipe</div></div><div><br></div><div><br></div><div>Any help will be greatly appreciated.</div><div><br></div><div>Regards,</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div></div><font size="2"><b><span style="color:rgb(7,55,99)"><i>Najeeb Ahmad</i></span></b></font></div><div><font size="2"><b><font color="#073763"><i><br></i></font></b></font><div dir="ltr" style="font-size:small"><div><font size="2"><b><span style="color:rgb(120,63,4)">Research and Teaching Assistant</span><br></b></font></div><div><font size="2"><b><font color="#000000">PARallel and MultiCORE Computing Laboratory (ParCoreLab)</font><span style="color:rgb(120,63,4)"> </span></b></font></div><font size="2"><b>Computer Science and Engineering<br></b></font></div><div style="font-size:small"><font size="2"><b>Koç University, Istanbul, Turkey</b></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>