SIGSEGV on qr decomposition

Aperta
#402 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust
Ambito
data

Direzione di ricerca

Start with the Cargo.toml and shell.nix configurations, then run the minimal 5x5 Rust reproduction and isolate the test.qr() call. Investigate the interaction between ndarray-linalg 0.17.0, the openblas-system feature, and the system OpenBLAS setup. Done means identifying the cause of the SIGSEGV and confirming that QR decomposition no longer crashes in the reproduction.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I am trying to use the qr decomposition method but am getting signal: 11, SIGSEGV: invalid memory reference whenever I call it.

Cargo.toml:

[dependencies]
ndarray = { version = "0.16.1", features = ["blas", "rayon"] }
ndarray-linalg = { version = "0.17.0", features = ["openblas-system"] }

shell.nix:

with import <nixpkgs> { };
mkShell {
  buildInputs = [
    rustup
    gcc
    bacon
    pkg-config
    openssl.dev
    openblas
  ];
}

Minimal reproduction:

        let mut rng = rand::rng();
        let test = Array2::from_shape_fn((5, 5), |_| rng.random::<i8>() as f64);
        let (q, r) = test .qr().unwrap();

removing the last line, this runs fine.

Lingua principale
Rust
Stelle
452
Fork
95
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rust-ndarray/ndarray-linalg

Tutte le issue di rust-ndarray/ndarray-linalg

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.