Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PETSc.jl with system petsc? #111

Closed
jkozdon opened this issue Jun 5, 2021 · 2 comments
Closed

PETSc.jl with system petsc? #111

jkozdon opened this issue Jun 5, 2021 · 2 comments

Comments

@jkozdon
Copy link
Member

jkozdon commented Jun 5, 2021

I couldn't tell, but it seems that you cannot use a system installed PETSc with this. Is that correct?

@jkozdon
Copy link
Member Author

jkozdon commented Jun 5, 2021

Actually, with Julia 1.6 I cannot even get it to work with the binary

❯ julia --project=.
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.1 (2021-04-23)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(petsc_test) pkg> add MPI
    Updating registry at `~/.julia/registries/General`
   Resolving package versions...
    Updating `~/codes/petsc_test/Project.toml`
  [da04e1cc] + MPI v0.18.0
    Updating `~/codes/petsc_test/Manifest.toml`
  [ffbed154] + DocStringExtensions v0.8.4
  [692b3bcd] + JLLWrappers v1.3.0
  [da04e1cc] + MPI v0.18.0
  [21216c6a] + Preferences v1.2.2
  [ae029012] + Requires v1.1.3
  [7cb0a576] + MPICH_jll v3.3.2+10
  [9237b28f] + MicrosoftMPI_jll v10.1.3+0
  [fe0851c0] + OpenMPI_jll v4.1.1+0
  [0dad84c5] + ArgTools
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [8ba89e20] + Distributed
  [f43a241f] + Downloads
  [b77e0a4c] + InteractiveUtils
  [b27032c2] + LibCURL
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [ca575930] + NetworkOptions
  [44cfe95a] + Pkg
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [fa267f1f] + TOML
  [a4e569a6] + Tar
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [e66e0078] + CompilerSupportLibraries_jll
  [deac9b47] + LibCURL_jll
  [29816b5a] + LibSSH2_jll
  [c8ffd9c3] + MbedTLS_jll
  [14a3606d] + MozillaCACerts_jll
  [83775a58] + Zlib_jll
  [8e850ede] + nghttp2_jll
  [3f19e933] + p7zip_jll

(petsc_test) pkg> add https://github.com/JuliaParallel/PETSc.jl
    Updating git-repo `https://github.com/JuliaParallel/PETSc.jl`
   Resolving package versions...
    Updating `~/codes/petsc_test/Project.toml`
  [ace2c81b] + PETSc v0.1.0 `https://github.com/JuliaParallel/PETSc.jl#master`
    Updating `~/codes/petsc_test/Manifest.toml`
  [ace2c81b] + PETSc v0.1.0 `https://github.com/JuliaParallel/PETSc.jl#master`
  [656ef2d0] + OpenBLAS32_jll v0.3.12+1
  [8fa3689e] + PETSc_jll v3.13.4+0
  [37e2e46d] + LinearAlgebra
  [2f01184e] + SparseArrays
Precompiling project...
  ✗ PETSc
  0 dependencies successfully precompiled in 2 seconds (14 already precompiled)
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

(petsc_test) pkg> precompile
Precompiling project...
  ✗ PETSc
  0 dependencies successfully precompiled in 2 seconds (14 already precompiled)

ERROR: The following 1 direct dependency failed to precompile:

PETSc [ace2c81b-2b5f-4b1e-a30d-d662738edfe0]

PETSc Error --- Application was linked against both OpenMPI and MPICH based MPI libraries and will not run correctly
ERROR: LoadError: LoadError: PETSc.PetscError(87)
Stacktrace:
  [1] initialize(libhdl::Ptr{Nothing})
    @ PETSc ~/.julia/packages/PETSc/9WOJe/src/lib.jl:7
  [2] (::PETSc.var"#1#2")(lib::String)
    @ PETSc ~/.julia/packages/PETSc/9WOJe/src/lib.jl:32
  [3] map(f::PETSc.var"#1#2", t::Tuple{String})
    @ Base ./tuple.jl:213
  [4] top-level scope
    @ ~/.julia/packages/PETSc/9WOJe/src/lib.jl:30
  [5] include(mod::Module, _path::String)
    @ Base ./Base.jl:386
  [6] include(x::String)
    @ PETSc ~/.julia/packages/PETSc/9WOJe/src/PETSc.jl:1
  [7] top-level scope
    @ ~/.julia/packages/PETSc/9WOJe/src/PETSc.jl:8
  [8] include
    @ ./Base.jl:386 [inlined]
  [9] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1213
 [10] top-level scope
    @ none:1
 [11] eval
    @ ./boot.jl:360 [inlined]
 [12] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [13] top-level scope
    @ none:1
in expression starting at /Users/jekozdon/.julia/packages/PETSc/9WOJe/src/lib.jl:30
in expression starting at /Users/jekozdon/.julia/packages/PETSc/9WOJe/src/PETSc.jl:1

(petsc_test) pkg>

@jkozdon
Copy link
Member Author

jkozdon commented Jun 5, 2021

blowing away my .julia worked. I think I was using MPI.jl with OpenMPI_jll and PETSc_jll uses MPICH_jll

@jkozdon jkozdon closed this as completed Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant