Skip to content

Commit d0f0aaa

Browse files
committed
make tests work on julia 1.8
1 parent 5a4830e commit d0f0aaa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/runtests.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using BatchedBLAS, Test, CUDA, LinearAlgebra, SymmetricFormats
1+
using BatchedBLAS, Test, CUDA, LinearAlgebra, LinearAlgebra.BLAS, SymmetricFormats
22

33
L=16; N=4
44
A = reshape(1.0:L*L*N, L,L,N);
@@ -43,7 +43,7 @@ test_types = (Float64, Int32)
4343
for i=1:N
4444
thisalpha = Talpha<:Vector ? alpha_vector[i] : alpha_scalar
4545
thisbeta = Tbeta<:Vector ? beta_vector[i] : beta_scalar
46-
BLAS.gemv!(trans, thisalpha, A[:,:,i], x[:,i], thisbeta, @view y_cpu[:,i])
46+
gemv!(trans, thisalpha, A[:,:,i], x[:,i], thisbeta, @view y_cpu[:,i])
4747
end
4848
y_gpu=copy(cuy);
4949
thisalpha = Talpha<:Vector ? cualpha_vector : alpha_scalar
@@ -57,7 +57,7 @@ test_types = (Float64, Int32)
5757
for i=1:N
5858
thisalpha = Talpha<:Vector ? alpha_vector[i] : alpha_scalar
5959
thisbeta = Tbeta<:Vector ? beta_vector[i] : beta_scalar
60-
BLAS.symv!(uplo, thisalpha, A[:,:,i], x[:,i], thisbeta, @view y_cpu[:,i])
60+
symv!(uplo, thisalpha, A[:,:,i], x[:,i], thisbeta, @view y_cpu[:,i])
6161
end
6262
y_gpu=copy(cuy);
6363
thisalpha = Talpha<:Vector ? cualpha_vector : alpha_scalar
@@ -69,7 +69,7 @@ test_types = (Float64, Int32)
6969
for i=1:N
7070
thisalpha = Talpha<:Vector ? alpha_vector[i] : alpha_scalar
7171
thisbeta = Tbeta<:Vector ? beta_vector[i] : beta_scalar
72-
BLAS.spmv!(uplo, thisalpha, APU[:,i], x[:,i], thisbeta, @view y_cpu[:,i])
72+
spmv!(uplo, thisalpha, APU[:,i], x[:,i], thisbeta, @view y_cpu[:,i])
7373
end
7474
y_gpu=copy(cuy);
7575
thisalpha = Talpha<:Vector ? cualpha_vector : alpha_scalar
@@ -82,7 +82,7 @@ test_types = (Float64, Int32)
8282
A_cpu=copy(A);
8383
for i=1:N
8484
thisalpha = Talpha<:Vector ? alpha_vector[i] : alpha_scalar
85-
BLAS.ger!(thisalpha, x[:,i], y[:,i], @view A_cpu[:,:,i])
85+
ger!(thisalpha, x[:,i], y[:,i], @view A_cpu[:,:,i])
8686
end
8787
A_gpu=copy(cuA);
8888
thisalpha = Talpha<:Vector ? cualpha_vector : alpha_scalar
@@ -94,7 +94,7 @@ test_types = (Float64, Int32)
9494
A_cpu=copy(A);
9595
for i=1:N
9696
thisalpha = Talpha<:Vector ? alpha_vector[i] : alpha_scalar
97-
BLAS.syr!(uplo, thisalpha, x[:,i], @view A_cpu[:,:,i])
97+
syr!(uplo, thisalpha, x[:,i], @view A_cpu[:,:,i])
9898
end
9999
A_gpu=copy(cuA);
100100
thisalpha = Talpha<:Vector ? cualpha_vector : alpha_scalar

0 commit comments

Comments
 (0)