`issymmetric` throws a kernel exception for a symmetric `2×2` `JLSparseMatrixCSC`
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
The issue points to src/host/sparse.jl and the issymmetric call, with broadcast materialization and a JLArrays kernel launch in the reported stack. Start by reading that method and reproducing the supplied Float32 CSC case on JLArrays; compare its result with CUDA. Done means issymmetric returns true for the symmetric matrix without a kernel exception.
由索引模型根据 Issue 内容生成。
描述
Description
Calling issymmetric on a Float32 CSC matrix with equal off-diagonal entries throws a kernel exception on JLArrays. The CUDA sparse backend returns true for the same input.
Reproduction
Run in a Julia project with the package versions listed below and a CUDA-capable GPU.
using CUDA, JLArrays
using JLArrays: JLSparseMatrixCSC
using CUDA.cuSPARSE: CuSparseMatrixCSC
using SparseArrays: sparse
using LinearAlgebra: issymmetric
for (backend, array) in (("JLArrays", JLSparseMatrixCSC), ("CUDA", CuSparseMatrixCSC))
try
a = array(sparse(Float32[0 2; 2 0]))
result = issymmetric(a)
println(backend, ": ", result)
catch err
println(backend, ": ", first(eachsplit(sprint(showerror, err), '\n')))
end
end
Observed output
ERROR: exception during kernel execution on work-item (1, 1, 1).
Run Julia on debug level 2 for a device stack trace.
JLArrays: KernelException: exception thrown during kernel execution on device cpu-skylake-avx512-11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz
CUDA: true
Expected behavior
The two off-diagonal entries both equal 2 and both diagonal entries are 0, so issymmetric(a) should return true.
Additional context
The sparse matrix is constructed successfully. The exception occurs during issymmetric(a). On GPUArrays 12.3.0, the host stack includes issymmetric and copy in src/host/sparse.jl, followed by broadcast materialization and a JLArrays kernel launch.
Environment
- Julia 1.13.4 on Debian GNU/Linux 13 (x86_64, Docker)
- GPUArrays.jl 12.3.0, JLArrays.jl 0.5.0, CUDA.jl 6.5.1
- JLArrays CPU device: Intel Core i7-11700
- CUDA device: NVIDIA GeForce RTX 4090, CUDA runtime 12.9.0, NVIDIA driver 595.99.02
- 主要语言
- Julia
- 星标
- 462
- 派生
- 109
- 平均合并
- 4 天 11 小时
- 30 天内合并 PR
- 26
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
JuliaGPU/GPUArrays.jl 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
JuliaGPU/GPUArrays.jl#881 ·
维护者通常 2 天内回复
-
arrays
难度 2/5 1-3 小时 新手友好度 68/100
JuliaGPU/GPUArrays.jl#697 · 1 个 reaction ·
维护者通常 2 天内回复
-
难度 3/5 1-2 天 新手友好度 57/100
JuliaGPU/GPUArrays.jl#879 ·
维护者通常 2 天内回复
-
JLArrays 0.5: `erfcx`, `logerfc`, `logerfcx` fail (worked in 0.4)可能已有人在做 @timholy 于 2 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
JuliaGPU/GPUArrays.jl#877 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
JuliaGPU/GPUArrays.jl#866 ·
维护者通常 2 天内回复
查看 JuliaGPU/GPUArrays.jl 的全部 Issue
相似的 Issue
-
Release CorleoneInverse as 0.1.1可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 1/5 1 小时以内 新手友好度 78/100
SciML/Corleone.jl#200 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
JuliaAI/MLJTransforms.jl#120 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
exercism/julia#1205 · 3 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
SciML/OrdinaryDiffEq.jl#5175 ·
维护者通常 1 天内回复