[petsc-users] Turn off CUDA Devices information

Yiyang Li liyiyang30 at gmail.com
Tue Sep 28 13:15:29 CDT 2021


Alright, that explains why I can't find information on petsc website about
how to turn that off.
Thank you Satish for your hint, I will figure that out.

Best,
Yiyang

On Tue, Sep 28, 2021 at 11:04 AM Satish Balay <balay at mcs.anl.gov> wrote:

> This verbose message comes from superlu_dist (when built with cuda)
>
> I'm not sure how to disable it [without going into the code and commenting
> out the code that does this]
>
> balay at sb /home/balay/git-repo/github/superlu_dist (maint=)
> $ git grep 'CUDA version'
> SRC/cublas_utils.c:    printf("CUDA version:   v %d\n",CUDART_VERSION);
>
>
> Satish
>
> On Tue, 28 Sep 2021, Yiyang Li wrote:
>
> > Yes, I do have superlu_dist built with petsc.
> > The command I used for launching simulation is
> >
> > mpiexec  --mca btl self,vader,tcp
> >                -np 4  python3 .../main.py ./input_ls
> >                -pc_type lu -pc_factor_mat_solver_type superlu_dist
> > -pc_asm_type basic -cuda_device NONE
> >
> > On Mon, Sep 27, 2021 at 6:43 PM Satish Balay <balay at mcs.anl.gov> wrote:
> >
> > > Do you have petsc built with superlu_dist?
> > >
> > > Satish
> > >
> > > On Mon, 27 Sep 2021, Yiyang Li wrote:
> > >
> > > > Hello,
> > > >
> > > > I have CUDA aware MPI, and I have upgraded from PETSc 3.12 to PETSc
> > > 3.15.4
> > > > and petsc4py 3.15.4.
> > > >
> > > > Now, when I call
> > > >
> > > > PETSc.KSP().solve(..., ...)
> > > >
> > > > The information of GPU is always printed to stdout by every MPI rank,
> > > like
> > > >
> > > > CUDA version:   v 11040
> > > > CUDA Devices:
> > > >
> > > > 0 : Quadro P4000 6 1
> > > >   Global memory:   8105 mb
> > > >   Shared memory:   48 kb
> > > >   Constant memory: 64 kb
> > > >   Block registers: 65536
> > > >
> > > > CUDA version:   v 11040
> > > > CUDA Devices:
> > > >
> > > > 0 : Quadro P4000 6 1
> > > >   Global memory:   8105 mb
> > > >   Shared memory:   48 kb
> > > >   Constant memory: 64 kb
> > > >   Block registers: 6553
> > > >
> > > > ...
> > > >
> > > > I wonder if there is an option to turn that off?
> > > > I have tried including
> > > >
> > > > -cuda_device NONE
> > > >
> > > > in command options, but that did not work.
> > > >
> > > > Best regards,
> > > > Yiyang
> > > >
> > >
> > >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20210928/79a5a904/attachment.html>


More information about the petsc-users mailing list