Skip to content

Commit

Permalink
Update example2.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Sep 22, 2023
1 parent acefe34 commit 96c2d32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
14 changes: 0 additions & 14 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,3 @@ steps:
Pkg.instantiate()
include("paper/example2/example2.jl")'
timeout_in_minutes: 30

- label: "CPUs -- StaticArrays.jl"
plugins:
- JuliaCI/julia#v1:
version: 1.9
agents:
queue: "juliaecosystem"
command: |
julia --color=yes --project -e '
using Pkg
Pkg.add("StaticArrays")
Pkg.instantiate()
include("test/test_extensions.jl")'
timeout_in_minutes: 30
6 changes: 4 additions & 2 deletions paper/example2/example2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ if CUDA.functional()

# Solve Py = x
function ldiv_ic0!(P, x, y, z)
ldiv!(z, LowerTriangular(P), x) # Forward substitution with L
ldiv!(y, LowerTriangular(P)', z) # Backward substitution with Lᴴ
L = LowerTriangular(P)
Lᴴ = adjoint(L)
ldiv!(z, L, x) # Forward substitution with L
ldiv!(y, Lᴴ, z) # Backward substitution with Lᴴ
return y
end

Expand Down

0 comments on commit 96c2d32

Please sign in to comment.