Skip to content

compatibility with CUDA.jl v6 / latest CUDA_Runtime_jll #20

Closed

Description

@simeonschaub

If I try to add CUDA@6 in an environment where CuPDLPx.jl is installed, I get the following resolver error:

ERROR: Unsatisfiable requirements detected for package CUDA_Runtime_jll [76a88914]:
 CUDA_Runtime_jll [76a88914] log:
 ├─possible versions are: 0.1.0 - 0.23.0 or uninstalled
 ├─restricted by compatibility requirements with CuPDLPx [bcd6524d] to versions: 0.19.2
 │ └─CuPDLPx [bcd6524d] log:
 │   ├─possible versions are: 0.2.3 - 0.2.7 or uninstalled
 │   └─restricted to versions * by project [47468d1f], leaving only versions: 0.2.3 - 0.2.7
 │     └─project [47468d1f] log:
 │       ├─possible versions are: 0.0.0 or uninstalled
 │       └─project [47468d1f] is fixed to version 0.0.0
 └─restricted by compatibility requirements with cuFFT [533571aa] to versions: [0.21.0, 0.23.0] — no versions left
   └─cuFFT [533571aa] log:
     ├─possible versions are: 6.0.0 - 6.2.0 or uninstalled
     └─required (without additional version restrictions) by CUDA [052768ef]
       └─CUDA [052768ef] log:
         ├─possible versions are: 0.1.0 - 6.2.0 or uninstalled
         └─restricted to versions 6 by an explicit requirement, leaving only versions: 6.0.0 - 6.2.0

could the CUDA_Runtime_jll compatibility be updated? Not sure if that requires further changes to this package

Activity

  1. ZedongPeng commented on Jun 21, 2026

    @ZedongPeng
    Collaborator

    Thanks for the report! The pin came from CuPDLPx declaring CUDA_Runtime_jll as a direct dependency even though it's only used transitively via the cuPDLPx_jll binary (which has no version bound on it). I've removed that unused dependency in #21, which lets CUDA_Runtime_jll float to whatever the rest of the environment needs.

    Locally, I confirmed that dev-ing the branch and then Pkg.add(name="CUDA", version="6") resolves and installs without the error. Once #21 is merged and v0.2.8 is registered, it'll be available via the registry, but if you'd like to verify sooner, you can test against the branch directly:

    pkg> add https://github.com/MIT-Lu-Lab/CuPDLPx.jl#v0.2.8
    pkg> add CUDA@6

    Let me know if it works on your end!

  2. self-assigned this
    on Jun 22, 2026
  3. ZedongPeng commented on Jun 23, 2026

    @ZedongPeng
    Collaborator

    v0.2.8 has now been registered, so you should be able to install it directly with:

    pkg> add CuPDLPx
  4. simeonschaub commented on Jun 24, 2026

    @simeonschaub
    Author

    Hmm, I am now getting segfaults with CuPDLPx in combination with CUDA_Runtime_jll 0.23. Running the tests outputs the following:

         Testing CuPDLPx
          Status `/tmp/jl_AiGZxv/Project.toml`
      [bcd6524d] CuPDLPx v0.2.9
      [b8f27783] MathOptInterface v1.51.1
      [bca5daad] cuPDLPx_jll v0.2.9+0
      [8dfed614] Test v1.11.0
          Status `/tmp/jl_AiGZxv/Manifest.toml`
      [523fee87] CodecBzip2 v0.8.5
      [944b1d66] CodecZlib v0.7.8
      [bbf7d656] CommonSubexpressions v0.3.1
      [bcd6524d] CuPDLPx v0.2.9
      [163ba53b] DiffResults v1.1.0
      [b552c78f] DiffRules v1.16.0
      [ffbed154] DocStringExtensions v0.9.5
      [f6369f11] ForwardDiff v1.4.1
      [92d709cd] IrrationalConstants v0.2.6
      [692b3bcd] JLLWrappers v1.8.0
      [682c06a0] JSON v1.6.1
      [2ab3a3ac] LogExpFunctions v1.0.1
      [1914dd2f] MacroTools v0.5.16
      [b8f27783] MathOptInterface v1.51.1
      [d8a4904e] MutableArithmetics v1.8.0
      [77ba4419] NaNMath v1.1.4
    ⌅ [bac558e1] OrderedCollections v1.8.2
      [69de0a69] Parsers v2.8.6
      [aea7be01] PrecompileTools v1.3.4
      [21216c6a] Preferences v1.5.2
      [276daf66] SpecialFunctions v2.8.0
      [1e83bf80] StaticArraysCore v1.4.4
      [ec057cc2] StructUtils v2.8.2
      [3bb67fe8] TranscodingStreams v0.11.3
      [6e34b625] Bzip2_jll v1.0.9+0
      [4ee394cb] CUDA_Driver_jll v13.3.0+0
      [76a88914] CUDA_Runtime_jll v0.23.0+0
      [efe28fd5] OpenSpecFun_jll v0.5.6+0
      [bca5daad] cuPDLPx_jll v0.2.9+0
      [0dad84c5] ArgTools v1.1.2
      [56f22d72] Artifacts v1.11.0
      [2a0f44e3] Base64 v1.11.0
      [ade2ca70] Dates v1.11.0
      [f43a241f] Downloads v1.7.0
      [7b1f6079] FileWatching v1.11.0
      [b77e0a4c] InteractiveUtils v1.11.0
      [ac6e5ff7] JuliaSyntaxHighlighting v1.12.0
      [4af54fe1] LazyArtifacts v1.11.0
      [b27032c2] LibCURL v0.6.4
      [76f85450] LibGit2 v1.11.0
      [8f399da3] Libdl v1.11.0
      [37e2e46d] LinearAlgebra v1.12.0
      [56ddb016] Logging v1.11.0
      [d6f4376e] Markdown v1.11.0
      [ca575930] NetworkOptions v1.3.0
      [44cfe95a] Pkg v1.12.1
      [de0858da] Printf v1.11.0
      [9a3f8284] Random v1.11.0
      [ea8e919c] SHA v0.7.0
      [9e88b42a] Serialization v1.11.0
      [2f01184e] SparseArrays v1.12.0
      [f489334b] StyledStrings v1.11.0
      [fa267f1f] TOML v1.0.3
      [a4e569a6] Tar v1.10.0
      [8dfed614] Test v1.11.0
      [cf7118a7] UUIDs v1.11.0
      [4ec0a83e] Unicode v1.11.0
      [e66e0078] CompilerSupportLibraries_jll v1.3.0+1
      [deac9b47] LibCURL_jll v8.15.0+0
      [e37daf67] LibGit2_jll v1.9.0+0
      [29816b5a] LibSSH2_jll v1.11.3+1
      [14a3606d] MozillaCACerts_jll v2025.11.4
      [4536629a] OpenBLAS_jll v0.3.29+0
      [05823500] OpenLibm_jll v0.8.7+0
      [458c3c95] OpenSSL_jll v3.5.4+0
      [bea87d4a] SuiteSparse_jll v7.8.3+2
      [83775a58] Zlib_jll v1.3.1+2
      [8e850b90] libblastrampoline_jll v5.15.0+0
      [8e850ede] nghttp2_jll v1.64.0+1
      [3f19e933] p7zip_jll v17.7.0+0
            Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading.
    Precompiling for configuration --code-coverage=none --color=yes --check-bounds=yes --warn-overwrite=yes --depwarn=yes --inline=yes --startup-file=no --track-allocation=none
      ✓ CUDA_Runtime_jll
      ✓ cuPDLPx_jll
      ✓ CuPDLPx
    Precompiling packages finished.
      3 dependencies successfully precompiled in 15 seconds. 60 already precompiled.
      3 dependencies precompiled but different versions are currently loaded. Restart julia to access the new versions. Otherwise, loading dependents of these packages may trigger further precompilation to work with the unexpected versions.
         Testing Running tests...
       > MatrixData Union logic verified.
       > Successfully called set_default_parameters.
       > Created temp MPS file at: /tmp/afiro.mps
       > Loaded Problem: 32 vars, 27 cons
    ---------------------------------------------------------------------------------------
                                        cuPDLPx v0.2.9                                    
                            A GPU-Accelerated First-Order LP Solver                        
                   (c) Haihao Lu, Massachusetts Institute of Technology, 2025              
    ---------------------------------------------------------------------------------------
    Problem: 27 rows, 32 columns, 83 nonzeros
    Settings:
      iter_limit         : 2147483647
      time_limit         : 3600.00 sec
      eps_opt            : 1.0e-04
      eps_feas           : 1.0e-04
      spmv_backend       : cusparseSpMVOp (auto)
    
    Running presolver (PSLP v0.0.8)...
      status          : REDUCED
      presolve time   : 0.000484 sec
      reduced problem : 21 rows, 28 columns, 71 nonzeros
    
    Preconditioning
      Ruiz scaling (10 iterations)
      Pock-Chambolle scaling (alpha=1.0000)
      Bound-objective scaling
    
    [17092] signal 11 (1): Segmentation fault
    in expression starting at /home/simeon/.julia/packages/CuPDLPx/UXj2r/test/runtests.jl:6
    unknown function (ip: 0x7fbfeb57d976) at /home/simeon/.julia/artifacts/a004f3f64687b138f31411e74e62e40734494d5b/lib/libcusparse.so.12
    unknown function (ip: 0x3fff) at (unknown file)
    cupdlpx_spmv_buffer_size at /workspace/srcdir/cuPDLPx/src/spmv_backend.cu:50
    cupdlpx_spmv_ctx_create at /workspace/srcdir/cuPDLPx/src/spmv_backend.cu:183
    initialize_solver_state at /workspace/srcdir/cuPDLPx/src/solver.cu:618 [inlined]
    optimize at /workspace/srcdir/cuPDLPx/src/solver.cu:151
    solve_lp_problem at /workspace/srcdir/cuPDLPx/src/cupdlpx.c:200
    solve_lp_problem at /home/simeon/.julia/packages/CuPDLPx/UXj2r/src/LibCuPDLPx.jl:185
    unknown function (ip: 0x7fc081e4dc2b) at (unknown file)
    jl_apply at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/julia.h:2391 [inlined]
    do_call at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/interpreter.c:123
    eval_value at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/interpreter.c:243
    eval_body at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/interpreter.c:581
    eval_body at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/interpreter.c:558
    eval_body at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/interpreter.c:558
    eval_body at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/interpreter.c:558
    eval_body at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/interpreter.c:558
    jl_interpret_toplevel_thunk at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/interpreter.c:898
    jl_toplevel_eval_flex at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/toplevel.c:1035
    jl_toplevel_eval_flex at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/toplevel.c:975
    ijl_toplevel_eval at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/toplevel.c:1047
    ijl_toplevel_eval_in at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/toplevel.c:1092
    eval at ./boot.jl:489
    include_string at ./loading.jl:2874
    _include at ./loading.jl:2934
    include at ./Base.jl:307
    IncludeInto at ./Base.jl:308
    jfptr_IncludeInto_61448.1 at /home/simeon/.julia/juliaup/julia-1.12.6+0.x64.linux.gnu/lib/julia/sys.so (unknown line)
    jl_apply at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/julia.h:2391 [inlined]
    do_call at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/interpreter.c:123
    eval_value at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/interpreter.c:243
    eval_stmt_value at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/interpreter.c:194 [inlined]
    eval_body at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/interpreter.c:707
    jl_interpret_toplevel_thunk at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/interpreter.c:898
    jl_toplevel_eval_flex at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/toplevel.c:1035
    jl_toplevel_eval_flex at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/toplevel.c:975
    ijl_toplevel_eval at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/toplevel.c:1047
    ijl_toplevel_eval_in at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/toplevel.c:1092
    eval at ./boot.jl:489
    exec_options at ./client.jl:283
    _start at ./client.jl:550
    jfptr__start_63319.1 at /home/simeon/.julia/juliaup/julia-1.12.6+0.x64.linux.gnu/lib/julia/sys.so (unknown line)
    jl_apply at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/julia.h:2391 [inlined]
    true_main at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/jlapi.c:971
    jl_repl_entrypoint at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/src/jlapi.c:1139
    main at /cache/build/builder-amdci5-4/julialang/julia-release-1-dot-12/cli/loader_exe.c:58
    __libc_start_call_main at /lib64/libc.so.6 (unknown line)
    __libc_start_main at /lib64/libc.so.6 (unknown line)
    unknown function (ip: 0x4010b8) at /workspace/srcdir/glibc-2.17/csu/../sysdeps/x86_64/start.S
    Allocations: 2656267 (Pool: 2656125; Big: 142); GC: 4
    ERROR: Package CuPDLPx errored during testing (received signal: 11)
    

    It looks like there might be some incompatibility with cuSPARSE?

    I uploaded afiro.mps to https://gist.github.com/simeonschaub/eeef6af648c5d98a9dc0282855585f3a in case you can't reproduce

  5. ZedongPeng commented on Jul 1, 2026

    @ZedongPeng
    Collaborator

    Thanks @simeonschaub, and thanks for the afiro.mps repro!

    This isn't a bindings issue — the crash is inside libcusparse.so.12 in the native cuPDLPx_jll binary. Since v0.2.8, the CUDA 13 build defaults to the experimental cusparseSpMVOp API, whereas the CUDA 12 build uses the classic cusparseSpMV. That SpMVOp API changed between CUDA 13.1 and 13.3, so when CUDA_Runtime_jll 0.23 loads the 13.3 cuSPARSE, its ABI no longer matches what the binary was built against → segfault in cusparseSpMVOp_bufferSize.

    I'll rebuild the CUDA-13 binaries and cut a new release.

    In the meantime you can avoid it by either pinning the CUDA-12 runtime:

    using CUDA
    CUDA.set_runtime_version!(v"12.9")   # then restart Julia

    or using cuPDLPx_jll v0.2.7, whose CUDA-13 build still uses cusparseSpMV.

  6. ZedongPeng commented on Jul 10, 2026

    @ZedongPeng
    Collaborator

    Hi @simeonschaub . CuPDLPx.jl v0.3.0 has been released. Give it a try and see if it works for you.

  7. simeonschaub commented on Jul 13, 2026

    @simeonschaub
    Author

    Can confirm CuPDLPx.jl v0.3.0 works without issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions