[petsc-users] Cannot eagerly initialize cuda, as doing so results in cuda error 35 (cudaErrorInsufficientDriver) : CUDA driver version is insufficient for CUDA runtime version

Fande Kong fdkong.jd at gmail.com
Thu Jan 20 14:09:51 CST 2022


Thanks, Jed,

This worked!

Fande

On Wed, Jan 19, 2022 at 11:03 PM Jed Brown <jed at jedbrown.org> wrote:

> Fande Kong <fdkong.jd at gmail.com> writes:
>
> > On Wed, Jan 19, 2022 at 11:39 AM Jacob Faibussowitsch <
> jacob.fai at gmail.com>
> > wrote:
> >
> >> Are you running on login nodes or compute nodes (I can’t seem to tell
> from
> >> the configure.log)?
> >>
> >
> > I was compiling codes on login nodes, and running codes on compute nodes.
> > Login nodes do not have GPUs, but compute nodes do have GPUs.
> >
> > Just to be clear, the same thing (code, machine) with PETSc-3.16.1 worked
> > perfectly. I have this trouble with PETSc-main.
>
> I assume you can
>
> export PETSC_OPTIONS='-device_enable lazy'
>
> and it'll work.
>
> I think this should be the default. The main complaint is that timing the
> first GPU-using event isn't accurate if it includes initialization, but I
> think this is mostly hypothetical because you can't trust any timing that
> doesn't preload in some form and the first GPU-using event will almost
> always be something uninteresting so I think it will rarely lead to
> confusion. Meanwhile, eager initialization is viscerally disruptive for
> lots of people.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220120/d736342e/attachment.html>


More information about the petsc-users mailing list