Skip to content

Commit 38ca930

Browse files
committed
Setup buildkite
1 parent a204372 commit 38ca930

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.buildkite/pipeline.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
steps:
2+
- label: "Nvidia GPUs -- LinearOperators.jl"
3+
plugins:
4+
- JuliaCI/julia#v1:
5+
version: 1.8
6+
agents:
7+
queue: "juliagpu"
8+
cuda: "*"
9+
command: |
10+
julia --color=yes --project -e '
11+
using Pkg
12+
Pkg.add("CUDA")
13+
Pkg.instantiate()
14+
include("test/gpu/nvidia.jl")'
15+
timeout_in_minutes: 30

test/gpu/nvidia.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using LinearOperators, CUDA, CUDA.CUSPARSE, CUDA.CUSOLVER
2+
3+
@testset "Nvidia -- CUDA.jl" begin
4+
5+
@test CUDA.functional()
6+
CUDA.allowscalar(false)
7+
8+
A = CUDA.rand(5,5)
9+
B = CUDA.rand(10,10)
10+
C = CUDA.rand(20,20)
11+
M = BlockDiagonalOperator(A, B, C)
12+
13+
v = CUDA.rand(35)
14+
y = M * v
15+
@test y <: CuVector{Float32}
16+
end

0 commit comments

Comments
 (0)