Skip to content

Commit

Permalink
Use qr_mumps_jll v3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Jan 22, 2025
1 parent 23c837a commit 036a47f
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 73 deletions.
122 changes: 61 additions & 61 deletions .github/workflows/ci_homebrew.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
name: CI-Homebrew
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.allow_failure }}
strategy:
fail-fast: false
matrix:
version: ['lts', '1']
os: [ubuntu-latest, macos-latest]
arch: [x64]
allow_failure: [false]
include:
- version: 'nightly'
os: ubuntu-latest
arch: x64
allow_failure: true
- version: 'nightly'
os: macos-latest
arch: x64
allow_failure: true
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install QRMump from Homebrew
id: set-up-qr-mumps
run: |
brew tap dpo/mumps-jl
brew install qr_mumps
echo "$(brew --prefix)/bin" >> $GITHUB_PATH
echo "::set-output name=prefix::$(brew --prefix)"
echo "JULIA_QRMUMPS_LIBRARY_PATH=$(brew --prefix)/opt/qr_mumps/lib" >> $GITHUB_ENV
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
# name: CI-Homebrew
# on:
# push:
# branches:
# - main
# pull_request:
# types: [opened, synchronize, reopened]
# jobs:
# test:
# name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
# runs-on: ${{ matrix.os }}
# continue-on-error: ${{ matrix.allow_failure }}
# strategy:
# fail-fast: false
# matrix:
# version: ['lts', '1']
# os: [ubuntu-latest, macos-latest]
# arch: [x64]
# allow_failure: [false]
# include:
# - version: 'nightly'
# os: ubuntu-latest
# arch: x64
# allow_failure: true
# - version: 'nightly'
# os: macos-latest
# arch: x64
# allow_failure: true
# steps:
# - name: Set up Homebrew
# id: set-up-homebrew
# uses: Homebrew/actions/setup-homebrew@master
# - name: Install QRMump from Homebrew
# id: set-up-qr-mumps
# run: |
# brew tap dpo/mumps-jl
# brew install qr_mumps
# echo "$(brew --prefix)/bin" >> $GITHUB_PATH
# echo "::set-output name=prefix::$(brew --prefix)"
# echo "JULIA_QRMUMPS_LIBRARY_PATH=$(brew --prefix)/opt/qr_mumps/lib" >> $GITHUB_ENV
# - uses: actions/checkout@v2
# - uses: julia-actions/setup-julia@v1
# with:
# version: ${{ matrix.version }}
# arch: ${{ matrix.arch }}
# - uses: actions/cache@v1
# env:
# cache-name: cache-artifacts
# with:
# path: ~/.julia/artifacts
# key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
# restore-keys: |
# ${{ runner.os }}-test-${{ env.cache-name }}-
# ${{ runner.os }}-test-
# ${{ runner.os }}-
# - uses: julia-actions/julia-buildpkg@v1
# - uses: julia-actions/julia-runtest@v1
# - uses: julia-actions/julia-processcoverage@v1
# - uses: codecov/codecov-action@v1
# with:
# file: lcov.info
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ SparseArrays = "1.10"
SparseMatricesCOO = "0.2.2"
Test = "1.10"
julia = "1.10"
qr_mumps_jll = "3.1.0"
qr_mumps_jll = "3.1.1"

[extras]
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# A [Julia](http://julialang.org) Interface to [qr_mumps](http://qr_mumps.gitlab.io/)
# A [Julia](http://julialang.org) Interface to [qr_mumps](https://qr_mumps.gitlab.io/)

| **Documentation** | **Linux/macOS/Windows/FreeBSD** | **Coverage** | **DOI** |
|:-----------------:|:-------------------------------:|:------------:|:-------:|
Expand Down Expand Up @@ -31,7 +31,7 @@ pkg> test QRMumps

## Content

[qr_mumps](http://qr_mumps.gitlab.io/) is a software package for the solution of sparse, linear systems on multicore computers.
[qr_mumps](https://qr_mumps.gitlab.io/) is a software package for the solution of sparse, linear systems on multicore computers.
It implements a direct solution method based on the QR or Cholesky factorization of the input matrix.
Therefore, it is suited to solving sparse least-squares problems, to computing the minimum-norm solution of sparse, underdetermined problems and to solving symmetric, positive-definite sparse linear systems.
It can obviously be used for solving square unsymmetric problems in which case the stability provided by the use of orthogonal transformations comes at the cost of a higher operation count with respect to solvers based on, e.g., the LU factorization such as [MUMPS](https://mumps-solver.org/index.php).
Expand Down
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Introduction

This package provides a Julia interface to [qr_mumps](http://qr_mumps.gitlab.io/), a software for solving sparse linear systems on multicore computers.
This package provides a Julia interface to [qr_mumps](https://qr_mumps.gitlab.io/), a software for solving sparse linear systems on multicore computers.
qr\_mumps implements a direct solution method based on the QR or Cholesky factorization of the input matrix.
Therefore, it is suited to solving sparse least-squares problems, to computing the minimum-norm solution of sparse, underdetermined problems and to solving symmetric, positive-definite sparse linear systems. It can obviously be used for solving square unsymmetric problems in which case the stability provided by the use of orthogonal transformations comes at the cost of a higher operation count with respect to solvers based on, e.g., the LU factorization such as [MUMPS](https://mumps-solver.org/index.php). It supports real and complex, single or double precision arithmetic.

Expand Down
10 changes: 4 additions & 6 deletions src/wrapper/qr_mumps_api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ for (fname, elty) in ((:sqrm_spfct_get_rp_c, :Float32 ),
@eval begin
function qrm_spfct_get_rp(spfct :: qrm_spfct{$elty})
err = $fname(spfct, spfct.ptr_rp)
# Fix it with the release 3.0.5
# qrm_check(err)
qrm_check(err)
rp = unsafe_wrap(Array, spfct.ptr_rp[], spfct.fct.m)
return rp
end
Expand All @@ -20,8 +19,7 @@ for (fname, elty) in ((:sqrm_spfct_get_cp_c, :Float32 ),
@eval begin
function qrm_spfct_get_cp(spfct :: qrm_spfct{$elty})
err = $fname(spfct, spfct.ptr_cp)
# Fix it with the release 3.0.5
# qrm_check(err)
qrm_check(err)
cp = unsafe_wrap(Array, spfct.ptr_cp[], spfct.fct.n)
return cp
end
Expand Down Expand Up @@ -113,7 +111,7 @@ for (fname, elty) in ((:sqrm_spmat_destroy_c, :Float32 ),
@eval begin
function qrm_spmat_destroy!(spmat :: qrm_spmat{$elty})
err = $fname(spmat)
# qrm_check(err)
qrm_check(err)
return nothing
end
end
Expand Down Expand Up @@ -886,7 +884,7 @@ function qrm_finalize()
end

function qrm_update!(spmat :: qrm_spmat{T}, val :: AbstractVector{T}) where T
spmat.val .= val
copyto!(spmat.val, val)
return nothing
end

Expand Down
4 changes: 2 additions & 2 deletions test/test_qrm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,8 @@ end
qrm_set(spfct, "qrm_rd_eps", tol)
qrm_analyse!(spmat, spfct)
qrm_factorize!(spmat, spfct)
@test (@allocated qrm_get(spfct, "qrm_rd_num")) == 0

nbits = @allocated qrm_get(spfct, "qrm_rd_num")
@test nbits == 0
end
end

Expand Down

0 comments on commit 036a47f

Please sign in to comment.