Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.9%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: exanauts
  • License: mit
  • Language: Julia
  • Default Branch: main
  • Size: 79.5 MB
Statistics
  • Stars: 38
  • Watchers: 7
  • Forks: 2
  • Open Issues: 12
  • Releases: 23
Created over 2 years ago · Last pushed 7 months ago
Metadata Files
Readme License Citation

README.md

CUDSS.jl: Julia interface for NVIDIA cuDSS

docs-dev

Overview

CUDSS.jl is a Julia interface to the NVIDIA cuDSS library. NVIDIA cuDSS provides three factorizations (LDU, LDLᵀ, LLᵀ) for solving sparse linear systems on GPUs.

Why CUDSS.jl?

Unlike other CUDA libraries that are commonly bundled together, cuDSS is currently in preview. For this reason, it is not included in CUDA.jl. To maintain consistency with the naming conventions used for other CUDA libraries (such as CUBLAS, CUSOLVER, CUSPARSE, etc.), we have named this interface CUDSS.jl.

Installation

CUDSS.jl can be installed and tested through the Julia package manager:

julia julia> ] pkg> add CUDSS pkg> test CUDSS

Content

CUDSS.jl provides a structured approach for leveraging NVIDIA cuDSS functionalities. It introduces the types CudssSolver and CudssBatchSolver along with three core routines: cudss, cudss_set, and cudss_get. Additionally, specialized methods for the CuSparseMatrixCSR type have been incorporated for cholesky, ldlt, lu and \. To further enhance performance, in-place variants including cholesky!, ldlt!, lu! and ldiv! have been implemented. These variants optimize performance by reusing the symbolic factorization as well as storage. This ensures efficient solving of sparse linear systems on GPUs.

Examples

Example 1: Sparse unsymmetric linear system with one right-hand side

```julia using CUDA, CUDA.CUSPARSE using CUDSS using SparseArrays, LinearAlgebra

T = Float64 n = 100 Acpu = sprand(T, n, n, 0.05) + I xcpu = zeros(T, n) b_cpu = rand(T, n)

Agpu = CuSparseMatrixCSR(Acpu) xgpu = CuVector(xcpu) bgpu = CuVector(bcpu)

solver = CudssSolver(A_gpu, "G", 'F')

cudss("analysis", solver, xgpu, bgpu) cudss("factorization", solver, xgpu, bgpu) cudss("solve", solver, xgpu, bgpu)

rgpu = bgpu - Agpu * xgpu norm(r_gpu)

In-place LU

dgpu = rand(T, n) |> CuVector Agpu = Agpu + Diagonal(dgpu) cudssset(solver, Agpu)

ccpu = rand(T, n) cgpu = CuVector(c_cpu)

cudss("refactorization", solver, xgpu, cgpu) cudss("solve", solver, xgpu, cgpu)

rgpu = cgpu - Agpu * xgpu norm(r_gpu) ```

Example 2: Sparse symmetric linear system with multiple right-hand sides

```julia using CUDA, CUDA.CUSPARSE using CUDSS using SparseArrays, LinearAlgebra

T = Float64 R = real(T) n = 100 p = 5 Acpu = sprand(T, n, n, 0.05) + I Acpu = Acpu + Acpu' Xcpu = zeros(T, n, p) Bcpu = rand(T, n, p)

Agpu = CuSparseMatrixCSR(Acpu |> tril) Xgpu = CuMatrix(Xcpu) Bgpu = CuMatrix(Bcpu)

structure = T <: Real ? "S" : "H" solver = CudssSolver(A_gpu, structure, 'L')

cudss("analysis", solver, Xgpu, Bgpu) cudss("factorization", solver, Xgpu, Bgpu) cudss("solve", solver, Xgpu, Bgpu)

Rgpu = Bgpu - CuSparseMatrixCSR(Acpu) * Xgpu norm(R_gpu)

In-place LDLᵀ

dgpu = rand(R, n) |> CuVector Agpu = Agpu + Diagonal(dgpu) cudssset(solver, Agpu)

Ccpu = rand(T, n, p) Cgpu = CuMatrix(C_cpu)

cudss("refactorization", solver, Xgpu, Cgpu) cudss("solve", solver, Xgpu, Cgpu)

Rgpu = Cgpu - ( CuSparseMatrixCSR(Acpu) + Diagonal(dgpu) ) * Xgpu norm(Rgpu) ```

Example 3: Sparse hermitian positive definite linear system with multiple right-hand sides

```julia using CUDA, CUDA.CUSPARSE using CUDSS using SparseArrays, LinearAlgebra

T = ComplexF64 R = real(T) n = 100 p = 5 Acpu = sprand(T, n, n, 0.01) Acpu = Acpu * Acpu' + I Xcpu = zeros(T, n, p) Bcpu = rand(T, n, p)

Agpu = CuSparseMatrixCSR(Acpu |> triu) Xgpu = CuMatrix(Xcpu) Bgpu = CuMatrix(Bcpu)

structure = T <: Real ? "SPD" : "HPD" solver = CudssSolver(A_gpu, structure, 'U')

cudss("analysis", solver, Xgpu, Bgpu) cudss("factorization", solver, Xgpu, Bgpu) cudss("solve", solver, Xgpu, Bgpu)

Rgpu = Bgpu - CuSparseMatrixCSR(Acpu) * Xgpu norm(R_gpu)

In-place LLᴴ

dgpu = rand(R, n) |> CuVector Agpu = Agpu + Diagonal(dgpu) cudssset(solver, Agpu)

Ccpu = rand(T, n, p) Cgpu = CuMatrix(C_cpu)

cudss("refactorization", solver, Xgpu, Cgpu) cudss("solve", solver, Xgpu, Cgpu)

Rgpu = Cgpu - ( CuSparseMatrixCSR(Acpu) + Diagonal(dgpu) ) * Xgpu norm(Rgpu) ```

Owner

  • Name: Exanauts
  • Login: exanauts
  • Kind: organization

An eclectic collection of ECP ExaSGD project codes

Citation (CITATION.cff)

cff-version: 1.2.0
title: >-
  CUDSS.jl: Julia interface for NVIDIA cuDSS
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Alexis
    family-names: Montoison
    email: alexis.montoison@polymtl.ca
    affiliation: >-
      Argonne National Laboratory, GERAD and Polytechnique Montréal
    orcid: 'https://orcid.org/0000-0002-3403-5450'
keywords:
  - Julia
  - cuDSS
  - direct methods
  - sparse linear systems
  - GPU computing
license: MIT
repository-code: >-
  https://github.com/exanauts/CUDSS.jl

GitHub Events

Total
  • Create event: 25
  • Commit comment event: 15
  • Release event: 8
  • Issues event: 13
  • Watch event: 16
  • Delete event: 14
  • Issue comment event: 22
  • Push event: 178
  • Pull request review event: 1
  • Pull request review comment event: 1
  • Pull request event: 31
  • Fork event: 2
Last Year
  • Create event: 25
  • Commit comment event: 15
  • Release event: 8
  • Issues event: 13
  • Watch event: 16
  • Delete event: 14
  • Issue comment event: 22
  • Push event: 178
  • Pull request review event: 1
  • Pull request review comment event: 1
  • Pull request event: 31
  • Fork event: 2

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 31
  • Total pull requests: 60
  • Average time to close issues: about 2 months
  • Average time to close pull requests: 2 days
  • Total issue authors: 11
  • Total pull request authors: 4
  • Average comments per issue: 2.94
  • Average comments per pull request: 0.32
  • Merged pull requests: 52
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 10
  • Pull requests: 27
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 4 days
  • Issue authors: 4
  • Pull request authors: 1
  • Average comments per issue: 1.3
  • Average comments per pull request: 0.0
  • Merged pull requests: 21
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • amontoison (18)
  • yuwenchen95 (2)
  • JerryGHT04 (1)
  • ChrisRackauckas (1)
  • mipals (1)
  • ovanvincq (1)
  • i3s93 (1)
  • frapac (1)
  • IdRatherBeCoding (1)
  • crazyfireji (1)
Pull Request Authors
  • amontoison (83)
  • ChrisRackauckas (2)
  • michel2323 (1)
  • frapac (1)
Top Labels
Issue Labels
enhancement (7) bug (5) documentation (4)
Pull Request Labels
enhancement (4) documentation (2)

Packages

  • Total packages: 1
  • Total downloads:
    • julia 114 total
  • Total dependent packages: 1
  • Total dependent repositories: 0
  • Total versions: 23
juliahub.com: CUDSS
  • Versions: 23
  • Dependent Packages: 1
  • Dependent Repositories: 0
  • Downloads: 114 Total
Rankings
Dependent repos count: 10.0%
Dependent packages count: 40.4%
Average: 41.9%
Forks count: 52.7%
Stargazers count: 64.6%
Last synced: 6 months ago

Dependencies

.github/workflows/Aqua.yml actions
  • actions/checkout v3 composite
  • julia-actions/setup-julia latest composite
.github/workflows/Documentation.yml actions
  • actions/checkout v3 composite
  • julia-actions/setup-julia latest composite
.github/workflows/Invalidations.yml actions
  • actions/checkout v3 composite
  • julia-actions/julia-buildpkg v1 composite
  • julia-actions/julia-invalidations v1 composite
  • julia-actions/setup-julia v1 composite
.github/workflows/TagBot.yml actions
  • JuliaRegistries/TagBot v1 composite
.github/workflows/ci.yml actions
  • actions/checkout v3 composite
  • codecov/codecov-action v2 composite
  • julia-actions/julia-buildpkg latest composite
  • julia-actions/julia-processcoverage v1 composite
  • julia-actions/julia-runtest latest composite
  • julia-actions/setup-julia latest composite