Satish,

That works. I see that libhpddm_petsc.so is in the spack view lib. Will test 
how to use it.

Thanks,
Cho
________________________________
From: Satish Balay <[email protected]>
Sent: Wednesday, May 8, 2024 11:49 PM
To: Ng, Cho-Kuen <[email protected]>
Cc: Pierre Jolivet <[email protected]>; [email protected] 
<[email protected]>
Subject: Re: [petsc-users] About PC hpddm

Try:

spack install slepc+hpddm ^petsc+hpddm

Satish


On Thu, 9 May 2024, Ng, Cho-Kuen via petsc-users wrote:

> Pierre,
>
> petec and slepc libraries are found in the spack directory, but 
> libhpddm_petsc is not. So it is not built during the spack install process.
>
> ... ...
> ./opt/spack/linux-sles15-zen3/gcc-12.3.0/petsc-3.21.0-tdljbqbgvde4zv6jr6tf7bbpae3rfkyg/lib/libpetsc.so
> ./var/spack/environments/demo1/.spack-env/._view/6rqhi7tgwui4fjo74fgkkyq4lklghged/lib/libpetsc.so
>
> ... ...
> ./opt/spack/linux-sles15-zen3/gcc-12.3.0/slepc-3.21.0-qhuhkznl5rlhqknsdqervlevup6xiuyt/lib/libslepc.so
> ./var/spack/environments/demo1/.spack-env/._view/6rqhi7tgwui4fjo74fgkkyq4lklghged/lib/libslepc.so
>
> Thanks,
> Cho
> ________________________________
> From: Pierre Jolivet <[email protected]>
> Sent: Wednesday, May 8, 2024 11:01 PM
> To: Ng, Cho-Kuen <[email protected]>
> Cc: [email protected] <[email protected]>
> Subject: Re: [petsc-users] About PC hpddm
>
>
>
> On 9 May 2024, at 6:31 AM, Ng, Cho-Kuen via petsc-users 
> <[email protected]> wrote:
>
> This Message Is From an External Sender
> This message came from outside your organization.
> I used spack to install petsc with hpddm as follows.
>
> o spack install petsc+hpddm
> o spack install slepc ^petsc+hpddm
>
> I got the following runtime error of finding the library hpddm_petsc.
>
> argv0 -ksp_converged_reason -ksp_view_final_residual -ksp_type gmres -pc_type 
> hpddm -ksp_monitor -log_view -options_left -device_view
> $$$$$$$$$$$$$$ buildmatrix petsc
> [6]PETSC ERROR: --------------------- Error Message 
> --------------------------------------------------------------
> [6]PETSC ERROR: Petsc has generated inconsistent data
> [6]PETSC ERROR: 
> /global/cfs/cdirs/ace3p/software/spack/var/spack/environments/demo1/.spack-env/view/lib/libhpddm_petsc
>  not found
>
> Is there something wrong with the install procedure?
>
> The command lines look OK to me (but I don’t know Spack).
> I’m not sure where things are being installed.
> Could you please send the path to:
> 1) libpetsc.so
> 2) libslepc.so
> 3) libhpddm_petsc.so
> If there is a mismatch between some of these, you may want to set the 
> environment variable SLEPC_DIR or the command line parameter -hpddm_dir.
>
> Thanks,
> Pierre
>
> Thanks,
> Cho
>
>

Reply via email to