Skip to content

Commit e566bcf

Browse files
committed
fix CUDA tests
1 parent af904cd commit e566bcf

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

test/ext-test/gpu/cuda_ext.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,6 @@ end
155155
end
156156

157157
@testset "CUDA ptrace" begin
158-
using Test
159-
using QuantumToolbox
160-
import StaticArraysCore: SVector
161-
162-
using CUDA
163-
using CUDA.CUSPARSE
164-
165158
g = fock(2, 1)
166159
e = fock(2, 0)
167160
α = sqrt(0.7)

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ if (GROUP == "CUDA_Ext")
6969
Pkg.instantiate()
7070

7171
using QuantumToolbox
72+
import LinearAlgebra: Diagonal
73+
import StaticArraysCore: SVector
7274
using CUDA
7375
using CUDA.CUSPARSE
7476
# CUDA.allowscalar(false) # This is already set in the extension script

0 commit comments

Comments
 (0)