<div dir="ltr">By the way, one more piece of the puzzle that i feel may contribute,<div><br></div><div>If i try setting the Preconditioner in the program as either one of:</div><div><br></div><div><div> call PCSetType(pc,PCSAVIENNACL ,ierr)</div><div> call PCSetType(pc,PCROWSCALINGVIENNACL,ierr)</div><div> call PCSetType(pc,PCCHOWILUVIENNACL,ierr)</div></div><div><br></div><div>It will give an error at compile time of the like:</div><div><br></div><div><div> call PCSetType(pc,PCCHOWILUVIENNACL,ierr)</div><div> 1</div><div> Error: Symbol 'pcchowiluviennacl' at (1) has no IMPLICIT type</div></div><div><br></div><div>If i instead use:</div><div><br></div><div><div> call PetscOptionsSetValue(PETSC_NULL_OPTIONS,'-pc_type','saviennacl',ierr)</div></div><div><br></div><div>Or give it that option at execute time as a command line argument, it setups the matrix as intended and it works for one processor,</div><div><br></div><div>Let me know if this rings a bell, i just tried updating the petsc repo and reinstalling but it didn't work,</div><div><br></div><div>Thanks,</div><div><br></div><div>Manuel </div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 29, 2018 at 11:50 AM, Manuel Valera <span dir="ltr"><<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi everyone,<div><br></div><div>Thanks for your responses, i understand communicating on this way to this level of technicality can be hard, i still think we can work ways to solve this problem though,</div><div><br></div><div>I can say the following at this point:</div><div><br></div><div><ul><li>Program works without issues in any other non-gpu preconditioner, just by calling -pc_type ### .</li><li>Program works correctly with ViennaCL preconditioners with mpirun -n 1, that is on one processor.</li><li>Program breaks with every ViennaCL preconditioner when attempting any more than 1 processors.</li><li>I haven't tried other GPU preconditioners because ViennaCL gave the best performance in 1 processor before.</li><li>I have made sure the matrix type is mpiaijviennacl as it is printed right before the error log.</li><li>I am attaching what i think are the backtrace logs of the run with two cores, as i have limited experience with this kind of debugging, and i cannot make sense of what they say, please let me know if you need me to do something else.</li></ul><div><br></div><div>Current options i can think of are giving you permission to clone my model repo, or for you to guide me trough the process remotely,</div><div><br></div><div>Thanks, </div><div><br></div><div>.-.-.-.-<br></div><div><br></div><div><br></div></div><div>The error i get is still:</div><div><font size="1"><br></font></div><div><span class=""><div><font size="1"> Matrix type: mpiaijviennacl </font></div><div><font size="1"> Of sizes: 125 x 125</font></div><div><font size="1"> Matrix type: mpiaijviennacl </font></div><div><font size="1"> Of sizes: 125 x 125</font></div><div><font size="1">[0]PETSC ERROR: --------------------- Error Message ------------------------------<wbr>------------------------------<wbr>--</font></div><div><font size="1">[0]PETSC ERROR: No support for this operation for this object type</font></div><div><font size="1">[0]PETSC ERROR: Currently only handles ViennaCL matrices</font></div><div><font size="1">[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" target="_blank">http://www.mcs.anl.gov/petsc/<wbr>documentation/faq.html</a> for trouble shooting.</font></div><div><font size="1">[0]PETSC ERROR: Petsc Development GIT revision: v3.9.2-549-g779ab53 GIT Date: 2018-05-31 17:31:13 +0300</font></div></span><div><font size="1">[0]PETSC ERROR: ./gcmLEP.GPU on a cuda-debug named node50 by valera Wed Aug 29 11:43:25 2018</font></div><span class=""><div><font size="1">[0]PETSC ERROR: Configure options PETSC_ARCH=cuda-debug --with-mpi-dir=/usr/lib64/<wbr>openmpi --COPTFLAGS=-O2 --CXXOPTFLAGS=-O2 --FOPTFLAGS=-O2 --with-shared-libraries=1 --with-debugging=1 --with-cuda=1 --CUDAFLAGS=-arch=sm_60 --with-blaslapack-dir=/usr/<wbr>lib64 --download-viennacl</font></div><div><font size="1">[0]PETSC ERROR: #1 PCSetUp_SAVIENNACL() line 47 in /home/valera/petsc/src/ksp/pc/<wbr>impls/saviennaclcuda/<a href="http://saviennacl.cu" target="_blank">saviennac<wbr>l.cu</a></font></div></span><span class=""><div><font size="1">[0]PETSC ERROR: #2 PCSetUp() line 932 in /home/valera/petsc/src/ksp/pc/<wbr>interface/precon.c</font></div><div><font size="1">[0]PETSC ERROR: #3 KSPSetUp() line 381 in /home/valera/petsc/src/ksp/<wbr>ksp/interface/itfunc.c</font></div></span><span class=""><div><font size="1">[1]PETSC ERROR: ------------------------------<wbr>------------------------------<wbr>------------</font></div><div><font size="1">[1]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range</font></div><div><font size="1">[1]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger</font></div><div><font size="1">[1]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind" target="_blank">http://www.mcs.anl.gov/petsc/<wbr>documentation/faq.html#<wbr>valgrind</a></font></div><div><font size="1">[1]PETSC ERROR: or try <a href="http://valgrind.org" target="_blank">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find memory corruption errors</font></div><div><font size="1">[1]PETSC ERROR: likely location of problem given in stack below</font></div><div><font size="1">[1]PETSC ERROR: --------------------- Stack Frames ------------------------------<wbr>------</font></div><div><font size="1">[1]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,</font></div><div><font size="1">[1]PETSC ERROR: INSTEAD the line number of the start of the function</font></div><div><font size="1">[1]PETSC ERROR: is given.</font></div><div><font size="1">[1]PETSC ERROR: [1] PetscTraceBackErrorHandler line 182 /home/valera/petsc/src/sys/<wbr>error/errtrace.c</font></div><div><font size="1">[1]PETSC ERROR: [1] PetscError line 352 /home/valera/petsc/src/sys/<wbr>error/err.c</font></div><div><font size="1">[1]PETSC ERROR: [1] PCSetUp_SAVIENNACL line 45 /home/valera/petsc/src/ksp/pc/<wbr>impls/saviennaclcuda/<a href="http://saviennacl.cu" target="_blank">saviennac<wbr>l.cu</a></font></div></span><span class=""><div><font size="1">[1]PETSC ERROR: [1] PCSetUp line 894 /home/valera/petsc/src/ksp/pc/<wbr>interface/precon.c</font></div></span><span class=""><div><font size="1">[1]PETSC ERROR: [1] KSPSetUp line 294 /home/valera/petsc/src/ksp/<wbr>ksp/interface/itfunc.c</font></div></span><span class=""><div><font size="1">[1]PETSC ERROR: --------------------- Error Message ------------------------------<wbr>------------------------------<wbr>--</font></div><div><font size="1">[1]PETSC ERROR: Signal received</font></div><div><font size="1">[1]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" target="_blank">http://www.mcs.anl.gov/petsc/<wbr>documentation/faq.html</a> for trouble shooting.</font></div><div><font size="1">[1]PETSC ERROR: Petsc Development GIT revision: v3.9.2-549-g779ab53 GIT Date: 2018-05-31 17:31:13 +0300</font></div></span><div><font size="1">[1]PETSC ERROR: ./gcmLEP.GPU on a cuda-debug named node50 by valera Wed Aug 29 11:43:25 2018</font></div><span class=""><div><font size="1">[1]PETSC ERROR: Configure options PETSC_ARCH=cuda-debug --with-mpi-dir=/usr/lib64/<wbr>openmpi --COPTFLAGS=-O2 --CXXOPTFLAGS=-O2 --FOPTFLAGS=-O2 --with-shared-libraries=1 --with-debugging=1 --with-cuda=1 --CUDAFLAGS=-arch=sm_60 --with-blaslapack-dir=/usr/<wbr>lib64 --download-viennacl</font></div><div><font size="1">[1]PETSC ERROR: #1 User provided function() line 0 in unknown file</font></div><div><font size="1">------------------------------<wbr>------------------------------<wbr>--------------</font></div><div><font size="1">MPI_ABORT was invoked on rank 1 in communicator MPI_COMM_WORLD </font></div><div><font size="1">with errorcode 59.</font></div><div><font size="1"><br></font></div><div><font size="1">NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.</font></div><div><font size="1">You may or may not see output from other processes, depending on</font></div><div><font size="1">exactly when Open MPI kills them.</font></div><div><font size="1">------------------------------<wbr>------------------------------<wbr>--------------</font></div><div><font size="1">[0]PETSC ERROR: ------------------------------<wbr>------------------------------<wbr>------------</font></div><div><font size="1">[0]PETSC ERROR: Caught signal number 15 Terminate: Some process (or the batch system) has told this process to end</font></div><div><font size="1">[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger</font></div><div><font size="1">[0]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind" target="_blank">http://www.mcs.anl.gov/petsc/<wbr>documentation/faq.html#<wbr>valgrind</a></font></div><div><font size="1">[0]PETSC ERROR: or try <a href="http://valgrind.org" target="_blank">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find memory corruption errors</font></div><div><font size="1">[0]PETSC ERROR: likely location of problem given in stack below</font></div><div><font size="1">[0]PETSC ERROR: --------------------- Stack Frames ------------------------------<wbr>------</font></div><div><font size="1">[0]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,</font></div><div><font size="1">[0]PETSC ERROR: INSTEAD the line number of the start of the function</font></div><div><font size="1">[0]PETSC ERROR: is given.</font></div></span><div><font size="1">[0]PETSC ERROR: [0] MatSetErrorIfFailure line 116 /home/valera/petsc/src/mat/<wbr>utils/gcreate.c</font></div><span class=""><div><font size="1">[0]PETSC ERROR: [0] PCSetUp line 894 /home/valera/petsc/src/ksp/pc/<wbr>interface/precon.c</font></div></span><span class=""><div><font size="1">[0]PETSC ERROR: [0] PCSetUp_SAVIENNACL line 45 /home/valera/petsc/src/ksp/pc/<wbr>impls/saviennaclcuda/<a href="http://saviennacl.cu" target="_blank">saviennac<wbr>l.cu</a></font></div></span><span class=""><div><font size="1">[0]PETSC ERROR: [0] PCSetUp line 894 /home/valera/petsc/src/ksp/pc/<wbr>interface/precon.c</font></div></span><div><font size="1">[0]PETSC ERROR: [0] KSPSetUp line 294 /home/valera/petsc/src/ksp/<wbr>ksp/interface/itfunc.c</font></div><span class=""><div><font size="1">[0]PETSC ERROR: --------------------- Error Message ------------------------------<wbr>------------------------------<wbr>--</font></div><div><font size="1">[0]PETSC ERROR: Signal received</font></div><div><font size="1">[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" target="_blank">http://www.mcs.anl.gov/petsc/<wbr>documentation/faq.html</a> for trouble shooting.</font></div><div><font size="1">[0]PETSC ERROR: Petsc Development GIT revision: v3.9.2-549-g779ab53 GIT Date: 2018-05-31 17:31:13 +0300</font></div></span><div><font size="1">[0]PETSC ERROR: ./gcmLEP.GPU on a cuda-debug named node50 by valera Wed Aug 29 11:43:25 2018</font></div><span class=""><div><font size="1">[0]PETSC ERROR: Configure options PETSC_ARCH=cuda-debug --with-mpi-dir=/usr/lib64/<wbr>openmpi --COPTFLAGS=-O2 --CXXOPTFLAGS=-O2 --FOPTFLAGS=-O2 --with-shared-libraries=1 --with-debugging=1 --with-cuda=1 --CUDAFLAGS=-arch=sm_60 --with-blaslapack-dir=/usr/<wbr>lib64 --download-viennacl</font></div></span><div><font size="1">[0]PETSC ERROR: #4 User provided function() line 0 in unknown file</font></div><div><font size="1">[node50:32783] 1 more process has sent help message help-mpi-api.txt / mpi-abort</font></div><div><font size="1">[node50:32783] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages</font></div></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 28, 2018 at 9:34 PM, Karl Rupp <span dir="ltr"><<a href="mailto:rupp@iue.tuwien.ac.at" target="_blank">rupp@iue.tuwien.ac.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Manuel,<br>
<br>
as Barry said, it is hard for us to provide any help without having a more complete picture of what is going on.<br>
<br>
The error you report seems to come from the AMG preconditioner in ViennaCL. This can have many origins. Do other preconditioners run without error? Can you run in a debugger and provide a complete backtrace?<br>
<br>
Thanks and best regards,<br>
Karli<span><br>
<br>
<br>
On 08/29/2018 01:33 AM, Manuel Valera wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>
Talked too fast,<br>
<br>
After fixing that problem, i tried more than one mpi processor and got the following:<br>
<br>
Matrix type: mpiaijviennacl<br>
Of sizes: 125 x 125<br>
Matrix type: mpiaijviennacl<br>
Of sizes: 125 x 125<br>
[0]PETSC ERROR: --------------------- Error Message ------------------------------<wbr>------------------------------<wbr>--<br>
[0]PETSC ERROR: No support for this operation for this object type<br>
[0]PETSC ERROR: Currently only handles ViennaCL matrices<br>
[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/d<wbr>ocumentation/faq.html</a> for trouble shooting.<br>
[0]PETSC ERROR: Petsc Development GIT revision: v3.9.2-549-g779ab53 GIT Date: 2018-05-31 17:31:13 +0300<br>
[0]PETSC ERROR: ./gcmLEP.GPU on a cuda-debug named node50 by valera Tue Aug 28 16:30:02 2018<br>
[0]PETSC ERROR: Configure options PETSC_ARCH=cuda-debug --with-mpi-dir=/usr/lib64/open<wbr>mpi --COPTFLAGS=-O2 --CXXOPTFLAGS=-O2 --FOPTFLAGS=-O2 --with-shared-libraries=1 --with-debugging=1 --with-cuda=1 --CUDAFLAGS=-arch=sm_60 --with-blaslapack-dir=/usr/lib<wbr>64 --download-viennacl<br></span>
[0]PETSC ERROR: #1 PCSetUp_SAVIENNACL() line 47 in /home/valera/petsc/src/ksp/pc/<wbr>impls/saviennaclcuda/<a href="http://saviennacl.cu" rel="noreferrer" target="_blank">saviennac<wbr>l.cu</a> <<a href="http://saviennacl.cu" rel="noreferrer" target="_blank">http://saviennacl.cu</a>><span><br>
[0]PETSC ERROR: #2 PCSetUp() line 932 in /home/valera/petsc/src/ksp/pc/<wbr>interface/precon.c<br>
[1]PETSC ERROR: ------------------------------<wbr>------------------------------<wbr>------------<br>
[1]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range<br>
[1]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger<br>
[1]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/d<wbr>ocumentation/faq.html#valgrind</a><br>
[1]PETSC ERROR: or try <a href="http://valgrind.org" rel="noreferrer" target="_blank">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find memory corruption errors<br>
[1]PETSC ERROR: likely location of problem given in stack below<br>
[1]PETSC ERROR: --------------------- Stack Frames ------------------------------<wbr>------<br>
[1]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,<br>
[1]PETSC ERROR: INSTEAD the line number of the start of the function<br>
[1]PETSC ERROR: is given.<br>
[1]PETSC ERROR: [1] PetscTraceBackErrorHandler line 182 /home/valera/petsc/src/sys/err<wbr>or/errtrace.c<br>
[1]PETSC ERROR: [1] PetscError line 352 /home/valera/petsc/src/sys/err<wbr>or/err.c<br></span>
[1]PETSC ERROR: [1] PCSetUp_SAVIENNACL line 45 /home/valera/petsc/src/ksp/pc/<wbr>impls/saviennaclcuda/<a href="http://saviennacl.cu" rel="noreferrer" target="_blank">saviennac<wbr>l.cu</a> <<a href="http://saviennacl.cu" rel="noreferrer" target="_blank">http://saviennacl.cu</a>><div><div class="m_-4450375825685821121h5"><br>
[1]PETSC ERROR: [1] PCSetUp line 894 /home/valera/petsc/src/ksp/pc/<wbr>interface/precon.c<br>
[1]PETSC ERROR: --------------------- Error Message ------------------------------<wbr>------------------------------<wbr>--<br>
[1]PETSC ERROR: Signal received<br>
[1]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/d<wbr>ocumentation/faq.html</a> for trouble shooting.<br>
[1]PETSC ERROR: Petsc Development GIT revision: v3.9.2-549-g779ab53 GIT Date: 2018-05-31 17:31:13 +0300<br>
[1]PETSC ERROR: ./gcmLEP.GPU on a cuda-debug named node50 by valera Tue Aug 28 16:30:02 2018<br>
[1]PETSC ERROR: Configure options PETSC_ARCH=cuda-debug --with-mpi-dir=/usr/lib64/open<wbr>mpi --COPTFLAGS=-O2 --CXXOPTFLAGS=-O2 --FOPTFLAGS=-O2 --with-shared-libraries=1 --with-debugging=1 --with-cuda=1 --CUDAFLAGS=-arch=sm_60 --with-blaslapack-dir=/usr/lib<wbr>64 --download-viennacl<br>
[1]PETSC ERROR: #1 User provided function() line 0 in unknown file<br>
------------------------------<wbr>------------------------------<wbr>--------------<br>
MPI_ABORT was invoked on rank 1 in communicator MPI_COMM_WORLD<br>
with errorcode 59.<br>
<br>
NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.<br>
You may or may not see output from other processes, depending on<br>
exactly when Open MPI kills them.<br>
------------------------------<wbr>------------------------------<wbr>--------------<br>
[0]PETSC ERROR: ------------------------------<wbr>------------------------------<wbr>------------<br>
[0]PETSC ERROR: Caught signal number 15 Terminate: Some process (or the batch system) has told this process to end<br>
[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger<br>
[0]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html#valgrind" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/d<wbr>ocumentation/faq.html#valgrind</a><br>
[0]PETSC ERROR: or try <a href="http://valgrind.org" rel="noreferrer" target="_blank">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find memory corruption errors<br>
[0]PETSC ERROR: likely location of problem given in stack below<br>
[0]PETSC ERROR: --------------------- Stack Frames ------------------------------<wbr>------<br>
[0]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,<br>
[0]PETSC ERROR: INSTEAD the line number of the start of the function<br>
[0]PETSC ERROR: is given.<br>
[0]PETSC ERROR: [0] PetscCommDuplicate line 130 /home/valera/petsc/src/sys/obj<wbr>ects/tagm.c<br>
[0]PETSC ERROR: [0] PetscHeaderCreate_Private line 34 /home/valera/petsc/src/sys/obj<wbr>ects/inherit.c<br>
[0]PETSC ERROR: [0] ISCreate line 35 /home/valera/petsc/src/vec/is/<wbr>is/interface/isreg.c<br>
[0]PETSC ERROR: [0] ISCreateGeneral line 668 /home/valera/petsc/src/vec/is/<wbr>is/impls/general/general.c<br></div></div>
[0]PETSC ERROR: [0] PCSetUp_SAVIENNACL line 45 /home/valera/petsc/src/ksp/pc/<wbr>impls/saviennaclcuda/<a href="http://saviennacl.cu" rel="noreferrer" target="_blank">saviennac<wbr>l.cu</a> <<a href="http://saviennacl.cu" rel="noreferrer" target="_blank">http://saviennacl.cu</a>><span><br>
[0]PETSC ERROR: [0] PCSetUp line 894 /home/valera/petsc/src/ksp/pc/<wbr>interface/precon.c<br>
[0]PETSC ERROR: --------------------- Error Message ------------------------------<wbr>------------------------------<wbr>--<br>
[0]PETSC ERROR: Signal received<br>
[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/d<wbr>ocumentation/faq.html</a> for trouble shooting.<br>
[0]PETSC ERROR: Petsc Development GIT revision: v3.9.2-549-g779ab53 GIT Date: 2018-05-31 17:31:13 +0300<br>
[0]PETSC ERROR: ./gcmLEP.GPU on a cuda-debug named node50 by valera Tue Aug 28 16:30:02 2018<br>
[0]PETSC ERROR: Configure options PETSC_ARCH=cuda-debug --with-mpi-dir=/usr/lib64/open<wbr>mpi --COPTFLAGS=-O2 --CXXOPTFLAGS=-O2 --FOPTFLAGS=-O2 --with-shared-libraries=1 --with-debugging=1 --with-cuda=1 --CUDAFLAGS=-arch=sm_60 --with-blaslapack-dir=/usr/lib<wbr>64 --download-viennacl<br>
[0]PETSC ERROR: #3 User provided function() line 0 in unknown file<br>
[node50:30582] 1 more process has sent help message help-mpi-api.txt / mpi-abort<br>
[node50:30582] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages<br>
<br>
<br>
<br>
It is currently running in 1 mpi processor + GPU but i would like to call at least 16 mpi processors + GPU to do the rest of the data management who is not part of the main laplacian on the mpi and the laplacian solution on the GPU, is this currently possible?<br>
<br>
Thanks for your help,<br>
<br>
<br>
<br></span><span>
On Tue, Aug 28, 2018 at 4:21 PM, Manuel Valera <<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a> <mailto:<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a>>> wrote:<br>
<br>
Ok, i found the culprit and we can close this thread,<br>
<br>
The problem was a missing variable for setting the maximum columns,<br>
which i deleted at some point without realizing. The error message<br>
was too ambiguous to catch this so i had to compare with a previous<br>
working version of the arguments of MatSetValues, it was evident then.<br>
<br>
Good news is that i can now set the values with the viennacl types too,<br>
<br>
Thanks for your kind help,<br>
<br>
Manuel<br>
<br>
On Tue, Aug 28, 2018 at 11:25 AM, Smith, Barry F.<br></span><span>
<<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a> <mailto:<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>>> wrote:<br>
<br>
<br>
1) PetscMalloc() is never valid or needed in Fortran<br>
<br>
2) there is no reason to use DMSetMatrixPreallocateOnly()<br>
just use DMCreateMatrix() assuming that using a DM (DMDA,<br>
DMPLEX, etc) is suitable for your problem.<br>
<br>
At this end we are totally guessing at what you are doing<br>
and so have little help we can provide. A simple, nonworking<br>
code that tries to do what you would need would help us a great<br>
deal in understanding that you are trying to do.<br>
<br>
Barry<br>
<br>
<br>
<br>
<br>
<br>
> On Aug 28, 2018, at 1:18 PM, Manuel Valera<br></span><span>
<<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a> <mailto:<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a>>> wrote:<br>
><br>
> Matthew, PetscMalloc gives the same error,<br>
><br>
> Barry, it would be very hard for me to get the code to a<br>
minimum working example, i guess all i need to understand is how<br>
to setup a DM matrix with DMSetMatrixPreallocateOnly() instead<br>
of MatMPIAIJSetPreallocation() as we were doing before, is there<br>
a simple example who does this in Fortran?<br>
><br>
> Is the PetscMalloc call needed? is 'call<br>
PetscMalloc(1,row,ierr)' a valid, compilable call to<br>
PetscMalloc? what other reason may there be for this error to<br>
happen ?<br>
><br>
> Just remembering, that trying to setup the matrix with the<br>
MatAIJSetPreallocation() brings up an error to acknowledge the<br>
viennacl datatypes and that's why i'm trying to make this change<br>
on your recommendation,<br>
><br>
> Thanks for your help,<br>
><br>
><br>
><br>
><br>
><br>
> On Mon, Aug 27, 2018 at 7:35 PM, Smith, Barry F.<br></span><span>
<<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a> <mailto:<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>>> wrote:<br>
><br>
> Send your code in a way we can compile and run it; it must<br>
be some simple issue that is hard to communicate in email.<br>
><br>
> Barry<br>
><br>
><br>
> > On Aug 27, 2018, at 5:51 PM, Manuel Valera<br></span><span>
<<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a> <mailto:<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a>>> wrote:<br>
> ><br>
> > Hello everyone,<br>
> ><br>
> > I just had time to work on this again, and checked the code<br>
for errors on the matrix entries, this is the exact code i was<br>
using for creating the matrix without<br>
DMSetMatrixPreallocateOnly, using MatMPIAIJSetPreallocation and<br>
it worked that way, but trying this way i get the same 'Column<br>
too large' error using any number at the column position of<br>
MatSetValues,<br>
> ><br>
> > I have set up my code to print the column argument (n) of<br>
MatSetValues and in this case is 7 (lower than 124), it still<br>
gives error, even entering a specific number in the MatSetValues<br>
column argument position gives the same error.<br>
> ><br>
> > So next i went back to ex.50 here:<br>
<a href="http://www.mcs.anl.gov/petsc/petsc-current/src/ts/examples/tutorials/ex50.c.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/p<wbr>etsc-current/src/ts/examples/t<wbr>utorials/ex50.c.html</a><br>
<<a href="http://www.mcs.anl.gov/petsc/petsc-current/src/ts/examples/tutorials/ex50.c.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/<wbr>petsc-current/src/ts/examples/<wbr>tutorials/ex50.c.html</a>><br>
and it has a very similar structure except the PetscMalloc1()<br>
call, so i tried adding that and got:<br>
> ><br>
> > /home/valera/ParGCCOM/Src/DMDA<wbr>Laplacian.f90:114: undefined<br>
reference to `petscmalloc1_'<br>
> ><br>
> > Any ideas on this behaviour?<br>
> ><br>
> > Thanks so much,<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > On Thu, Aug 16, 2018 at 11:20 AM, Smith, Barry F.<br></span><span>
<<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a> <mailto:<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>>> wrote:<br>
> ><br>
> > Column too large: col 10980 max 124<br>
> ><br>
> > You need to check the code that is generating the matrix<br>
entries. The matrix has 124 columns but you are attempting to<br>
put a value at column 10980<br>
> ><br>
> > Barry<br>
> ><br>
> ><br>
> > > On Aug 15, 2018, at 9:44 PM, Manuel Valera<br></span><div><div class="m_-4450375825685821121h5">
<<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a> <mailto:<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a>>> wrote:<br>
> > ><br>
> > > Thanks Matthew and Barry,<br>
> > ><br>
> > > Now my code looks like:<br>
> > ><br>
> > > call DMSetMatrixPreallocateOnly(daD<wbr>ummy,PETSC_TRUE,ierr)<br>
> > > call DMSetMatType(daDummy,MATMPIAIJ<wbr>VIENNACL,ierr)<br>
> > > call DMSetVecType(daDummy,VECMPIVIE<wbr>NNACL,ierr)<br>
> > > call DMCreateMatrix(daDummy,A,ierr)<br>
> > > call MatSetFromOptions(A,ierr)<br>
> > > call MatSetUp(A,ierr)<br>
> > > [...]<br>
> > > call<br>
MatSetValues(A,1,row,sumpos,po<wbr>s(0:iter-1),vals(0:iter-1),INS<wbr>ERT_VALUES,ierr)<br>
> > > [...]<br>
> > > call MatAssemblyBegin(A, MAT_FINAL_ASSEMBLY, ierr)<br>
> > > call MatAssemblyEnd(A, MAT_FINAL_ASSEMBLY, ierr)<br>
> > ><br>
> > > And i get a different error, now is:<br>
> > ><br>
> > > [0]PETSC ERROR: --------------------- Error Message<br>
------------------------------<wbr>------------------------------<wbr>--<br>
> > > [0]PETSC ERROR: Argument out of range<br>
> > > [0]PETSC ERROR: Column too large: col 10980 max 124<br>
> > > [0]PETSC ERROR: See<br>
<a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/d<wbr>ocumentation/faq.html</a><br>
<<a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/<wbr>documentation/faq.html</a>> for<br>
trouble shooting.<br>
> > > [0]PETSC ERROR: Petsc Development GIT revision:<br>
v3.9.2-549-g779ab53 GIT Date: 2018-05-31 17:31:13 +0300<br>
> > > [0]PETSC ERROR: ./gcmLEP.GPU on a cuda-debug named node50<br>
by valera Wed Aug 15 19:40:00 2018<br>
> > > [0]PETSC ERROR: Configure options PETSC_ARCH=cuda-debug<br>
--with-mpi-dir=/usr/lib64/open<wbr>mpi --COPTFLAGS=-O2<br>
--CXXOPTFLAGS=-O2 --FOPTFLAGS=-O2 --with-shared-libraries=1<br>
--with-debugging=1 --with-cuda=1 --CUDAFLAGS=-arch=sm_60<br>
--with-blaslapack-dir=/usr/lib<wbr>64 --download-viennacl<br>
> > > [0]PETSC ERROR: #1 MatSetValues_SeqAIJ() line 442 in<br>
/home/valera/petsc/src/mat/imp<wbr>ls/aij/seq/aij.c<br>
> > > [0]PETSC ERROR: #2 MatSetValues() line 1339 in<br>
/home/valera/petsc/src/mat/int<wbr>erface/matrix.c<br>
> > ><br>
> > ><br>
> > > Thanks again,<br>
> > ><br>
> > ><br>
> > ><br>
> > ><br>
> > ><br>
> > ><br>
> > ><br>
> > ><br>
> > > On Wed, Aug 15, 2018 at 7:02 PM, Smith, Barry F.<br></div></div><span>
<<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a> <mailto:<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>>> wrote:<br>
> > ><br>
> > > Should be<br>
> > ><br>
> > > call DMSetMatType(daDummy,MATMPIAIJ<wbr>VIENNACL,ierr)<br>
> > > call DMSetVecType(daDummy,VECMPIVIE<wbr>NNACL,ierr)<br>
> > > call DMCreateMatrix(daDummy,A,ierr)<br>
> > ><br>
> > > and remove the rest. You need to set the type of Mat<br>
you want the DM to return BEFORE you create the matrix.<br>
> > ><br>
> > > Barry<br>
> > ><br>
> > ><br>
> > ><br>
> > > > On Aug 15, 2018, at 4:45 PM, Manuel Valera<br></span><div><div class="m_-4450375825685821121h5">
<<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a> <mailto:<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a>>> wrote:<br>
> > > ><br>
> > > > Ok thanks for clarifying that, i wasn't sure if there<br>
were different types,<br>
> > > ><br>
> > > > Here is a stripped down version of my code, it seems<br>
like the preallocation is working now since the matrix<br>
population part is working without problem, but here it is for<br>
illustration purposes:<br>
> > > ><br>
> > > > call DMSetMatrixPreallocateOnly(daD<wbr>ummy,PETSC_TRUE,ierr)<br>
> > > > call DMCreateMatrix(daDummy,A,ierr)<br>
> > > > call MatSetFromOptions(A,ierr)<br>
> > > > call DMSetMatType(daDummy,MATMPIAIJ<wbr>VIENNACL,ierr)<br>
> > > > call DMSetVecType(daDummy,VECMPIVIE<wbr>NNACL,ierr)<br>
> > > > call<br>
MatMPIAIJSetPreallocation(A,19<wbr>,PETSC_NULL_INTEGER,19,PETSC_N<wbr>ULL_INTEGER,ierr)<br>
> > > > call MatSetUp(A,ierr)<br>
> > > > [...]<br>
> > > > call<br>
MatSetValues(A,1,row,sumpos,po<wbr>s(0:iter-1),vals(0:iter-1),INS<wbr>ERT_VALUES,ierr)<br>
> > > > [...]<br>
> > > > call MatAssemblyBegin(A, MAT_FINAL_ASSEMBLY, ierr)<br>
> > > > call MatAssemblyEnd(A, MAT_FINAL_ASSEMBLY, ierr)<br>
> > > ><br>
> > > > Adding the first line there did the trick,<br>
> > > ><br>
> > > > Now the problem seems to be the program is not<br>
recognizing the matrix as ViennaCL type when i try with more<br>
than one processor, i get now:<br>
> > > ><br>
> > > > [0]PETSC ERROR: --------------------- Error Message<br>
------------------------------<wbr>------------------------------<wbr>--<br>
> > > > [0]PETSC ERROR: No support for this operation for this<br>
object type<br>
> > > > [0]PETSC ERROR: Currently only handles ViennaCL matrices<br>
> > > > [0]PETSC ERROR: See<br>
<a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/d<wbr>ocumentation/faq.html</a><br>
<<a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/<wbr>documentation/faq.html</a>> for<br>
trouble shooting.<br>
> > > > [0]PETSC ERROR: Petsc Development GIT revision:<br>
v3.9.2-549-g779ab53 GIT Date: 2018-05-31 17:31:13 +0300<br>
> > > > [0]PETSC ERROR: ./gcmLEP.GPU on a cuda-debug named<br>
node50 by valera Wed Aug 15 14:44:22 2018<br>
> > > > [0]PETSC ERROR: Configure options PETSC_ARCH=cuda-debug<br>
--with-mpi-dir=/usr/lib64/open<wbr>mpi --COPTFLAGS=-O2<br>
--CXXOPTFLAGS=-O2 --FOPTFLAGS=-O2 --with-shared-libraries=1<br>
--with-debugging=1 --with-cuda=1 --CUDAFLAGS=-arch=sm_60<br>
--with-blaslapack-dir=/usr/lib<wbr>64 --download-viennacl<br>
> > > > [0]PETSC ERROR: #1 PCSetUp_SAVIENNACL() line 47 in<br>
/home/valera/petsc/src/ksp/pc/<wbr>impls/saviennaclcuda/<a href="http://saviennacl.cu" rel="noreferrer" target="_blank">saviennac<wbr>l.cu</a><br></div></div>
<<a href="http://saviennacl.cu" rel="noreferrer" target="_blank">http://saviennacl.cu</a>><span><br>
> > > > [0]PETSC ERROR: #2 PCSetUp() line 932 in<br>
/home/valera/petsc/src/ksp/pc/<wbr>interface/precon.c<br>
> > > > [0]PETSC ERROR: #3 KSPSetUp() line 381 in<br>
/home/valera/petsc/src/ksp/ksp<wbr>/interface/itfunc.c<br>
> > > ><br>
> > > > When running with:<br>
> > > ><br>
> > > > mpirun -n 1 ./gcmLEP.GPU<br>
tc=TestCases/LockRelease/LE_6x<wbr>6x6/ jid=tiny_cuda_test_n2<br>
-ksp_type cg -dm_vec_type viennacl -dm_mat_type aijviennacl<br>
-pc_type saviennacl -log_view<br>
> > > ><br>
> > > ><br>
> > > > Thanks,<br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > > On Wed, Aug 15, 2018 at 2:32 PM, Matthew Knepley<br></span><span>
<<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a> <mailto:<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>>> wrote:<br>
> > > > On Wed, Aug 15, 2018 at 5:20 PM Manuel Valera<br></span><span>
<<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a> <mailto:<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a>>> wrote:<br>
> > > > It seems to be resumed on: I do not know how to<br>
preallocate a DM Matrix correctly.<br>
> > > ><br>
> > > > There is only one matrix type, Mat. There are no<br>
separate DM matrices. A DM can create a matrix for you<br>
> > > > using DMCreateMatrix(), but that is a Mat and it is<br>
preallocated correctly. I am not sure what you are doing.<br>
> > > ><br>
> > > > Thanks,<br>
> > > ><br>
> > > > Matt<br>
> > > ><br>
> > > > The interesting part is that it only breaks when i need<br>
to populate a GPU matrix from MPI, so kudos on that, but it<br>
seems i need to do better on my code to get this setup working,<br>
> > > ><br>
> > > > Any help would be appreciated,<br>
> > > ><br>
> > > > Thanks,<br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > > On Wed, Aug 15, 2018 at 2:15 PM, Matthew Knepley<br></span><span>
<<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a> <mailto:<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>>> wrote:<br>
> > > > On Wed, Aug 15, 2018 at 4:53 PM Manuel Valera<br></span><span>
<<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a> <mailto:<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a>>> wrote:<br>
> > > > Thanks Matthew,<br>
> > > ><br>
> > > > I try to do that when calling:<br>
> > > ><br>
> > > > call<br>
MatMPIAIJSetPreallocation(A,19<wbr>,PETSC_NULL_INTEGER,19,PETSC_N<wbr>ULL_INTEGER,ierr)<br>
> > > ><br>
> > > > But i am not aware on how to do this for the DM if it<br>
needs something more specific/different,<br>
> > > ><br>
> > > > The error says that your preallocation is wrong for the<br>
values you are putting in. The DM does not control either,<br>
> > > > so I do not understand your email.<br>
> > > ><br>
> > > > Thanks,<br>
> > > ><br>
> > > > Matt<br>
> > > ><br>
> > > > Thanks,<br>
> > > ><br>
> > > > On Wed, Aug 15, 2018 at 1:51 PM, Matthew Knepley<br></span><span>
<<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a> <mailto:<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>>> wrote:<br>
> > > > On Wed, Aug 15, 2018 at 4:39 PM Manuel Valera<br></span><div><div class="m_-4450375825685821121h5">
<<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a> <mailto:<a href="mailto:mvalera-w@sdsu.edu" target="_blank">mvalera-w@sdsu.edu</a>>> wrote:<br>
> > > > Hello PETSc devs,<br>
> > > ><br>
> > > > I am running into an error when trying to use the<br>
MATMPIAIJVIENNACL Matrix type in MPI calls, the same code runs<br>
for MATSEQAIJVIENNACL type in one processor. The error happens<br>
when calling MatSetValues for this specific configuration. It<br>
does not occur when using MPI DMMatrix types only.<br>
> > > ><br>
> > > > The DM properly preallocates the matrix. I am assuming<br>
you do not here.<br>
> > > ><br>
> > > > Matt<br>
> > > ><br>
> > > > Any help will be appreciated,<br>
> > > ><br>
> > > > Thanks,<br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > > My program call:<br>
> > > ><br>
> > > > mpirun -n 2 ./gcmLEP.GPU<br>
tc=TestCases/LockRelease/LE_6x<wbr>6x6/ jid=tiny_cuda_test_n2<br>
-ksp_type cg -dm_vec_type viennacl -dm_mat_type aijviennacl<br>
-pc_type saviennacl -log_view<br>
> > > ><br>
> > > ><br>
> > > > The error (repeats after each MatSetValues call):<br>
> > > ><br>
> > > > [1]PETSC ERROR: --------------------- Error Message<br>
------------------------------<wbr>------------------------------<wbr>--<br>
> > > > [1]PETSC ERROR: Argument out of range<br>
> > > > [1]PETSC ERROR: Inserting a new nonzero at global<br>
row/column (75, 50) into matrix<br>
> > > > [1]PETSC ERROR: See<br>
<a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/d<wbr>ocumentation/faq.html</a><br>
<<a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/<wbr>documentation/faq.html</a>> for<br>
trouble shooting.<br>
> > > > [1]PETSC ERROR: Petsc Development GIT revision:<br>
v3.9.2-549-g779ab53 GIT Date: 2018-05-31 17:31:13 +0300<br>
> > > > [1]PETSC ERROR: ./gcmLEP.GPU on a cuda-debug named<br>
node50 by valera Wed Aug 15 13:10:44 2018<br>
> > > > [1]PETSC ERROR: Configure options PETSC_ARCH=cuda-debug<br>
--with-mpi-dir=/usr/lib64/open<wbr>mpi --COPTFLAGS=-O2<br>
--CXXOPTFLAGS=-O2 --FOPTFLAGS=-O2 --with-shared-libraries=1<br>
--with-debugging=1 --with-cuda=1 --CUDAFLAGS=-arch=sm_60<br>
--with-blaslapack-dir=/usr/lib<wbr>64 --download-viennacl<br>
> > > > [1]PETSC ERROR: #1 MatSetValues_MPIAIJ() line 608 in<br>
/home/valera/petsc/src/mat/imp<wbr>ls/aij/mpi/mpiaij.c<br>
> > > > [1]PETSC ERROR: #2 MatSetValues() line 1339 in<br>
/home/valera/petsc/src/mat/int<wbr>erface/matrix.c<br>
> > > ><br>
> > > ><br>
> > > > My Code structure:<br>
> > > ><br>
> > > > call DMCreateMatrix(daDummy,A,ierr)<br>
> > > > call MatSetFromOptions(A,ierr)<br>
> > > > call MPI_Comm_size(PETSC_COMM_WORLD<wbr>, numprocs, ierr)<br>
> > > > if (numprocs > 1) then ! set matrix type parallel<br>
> > > > ! Get local size<br>
> > > > call DMDACreateNaturalVector(daDumm<wbr>y,Tmpnat,ierr)<br>
> > > > call VecGetLocalSize(Tmpnat,locsize<wbr>,ierr)<br>
> > > > call VecDestroy(Tmpnat,ierr)<br>
> > > > ! Set matrix<br>
> > > > #ifdef GPU<br>
> > > > call MatSetType(A,MATAIJVIENNACL,ie<wbr>rr)<br>
> > > > call DMSetMatType(daDummy,MATMPIAIJ<wbr>VIENNACL,ierr)<br>
> > > > call DMSetVecType(daDummy,VECMPIVIE<wbr>NNACL,ierr)<br>
> > > > print*,'SETTING GPU TYPES'<br>
> > > > #else<br>
> > > > call DMSetMatType(daDummy,MATMPIAIJ<wbr>,ierr)<br>
> > > > call DMSetMatType(daDummy,VECMPI,ie<wbr>rr)<br>
> > > > call MatSetType(A,MATMPIAIJ,ierr)!<br>
> > > > #endif<br>
> > > > call<br>
MatMPIAIJSetPreallocation(A,19<wbr>,PETSC_NULL_INTEGER,19,PETSC_N<wbr>ULL_INTEGER,ierr)<br>
> > > > else ! set matrix type sequential<br>
> > > > #ifdef GPU<br>
> > > > call DMSetMatType(daDummy,MATSEQAIJ<wbr>VIENNACL,ierr)<br>
> > > > call DMSetVecType(daDummy,VECSEQVIE<wbr>NNACL,ierr)<br>
> > > > call MatSetType(A,MATSEQAIJVIENNACL<wbr>,ierr)<br>
> > > > print*,'SETTING GPU TYPES'<br>
> > > > #else<br>
> > > > call DMSetMatType(daDummy,MATSEQAIJ<wbr>,ierr)<br>
> > > > call DMSetMatType(daDummy,VECSEQ,ie<wbr>rr)<br>
> > > > call MatSetType(A,MATSEQAIJ,ierr)<br>
> > > > #endif<br>
> > > > call MatSetUp(A,ierr)<br>
> > > > call<br>
getCenterInfo(daGrid,xstart,ys<wbr>tart,zstart,xend,yend,zend)<br>
> > > ><br>
> > > > do k=zstart,zend-1<br>
> > > > do j=ystart,yend-1<br>
> > > > do i=xstart,xend-1<br>
> > > > [..]<br>
> > > > call<br>
MatSetValues(A,1,row,sumpos,po<wbr>s(0:iter-1),vals(0:iter-1),INS<wbr>ERT_VALUES,ierr)<br>
> > > > [..]<br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > > --<br>
> > > > What most experimenters take for granted before they<br>
begin their experiments is infinitely more interesting than any<br>
results to which their experiments lead.<br>
> > > > -- Norbert Wiener<br>
> > > ><br>
> > > > <a href="https://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank">https://www.cse.buffalo.edu/~k<wbr>nepley/</a><br></div></div>
<<a href="https://www.cse.buffalo.edu/%7Eknepley/" rel="noreferrer" target="_blank">https://www.cse.buffalo.edu/%<wbr>7Eknepley/</a>><span><br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > > --<br>
> > > > What most experimenters take for granted before they<br>
begin their experiments is infinitely more interesting than any<br>
results to which their experiments lead.<br>
> > > > -- Norbert Wiener<br>
> > > ><br>
> > > > <a href="https://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank">https://www.cse.buffalo.edu/~k<wbr>nepley/</a><br></span>
<<a href="https://www.cse.buffalo.edu/%7Eknepley/" rel="noreferrer" target="_blank">https://www.cse.buffalo.edu/%<wbr>7Eknepley/</a>><span><br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > > --<br>
> > > > What most experimenters take for granted before they<br>
begin their experiments is infinitely more interesting than any<br>
results to which their experiments lead.<br>
> > > > -- Norbert Wiener<br>
> > > ><br>
> > > > <a href="https://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank">https://www.cse.buffalo.edu/~k<wbr>nepley/</a><br></span>
<<a href="https://www.cse.buffalo.edu/%7Eknepley/" rel="noreferrer" target="_blank">https://www.cse.buffalo.edu/%<wbr>7Eknepley/</a>><br>
> > > ><br>
> > ><br>
> > ><br>
> ><br>
> ><br>
><br>
><br>
<br>
<br>
<br>
</blockquote>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>