@@ -53,15 +53,15 @@ for V in spacelist
5353 @test codomain (t) == W
5454 @test space (t) == (W ← one (W))
5555 @test domain (t) == one (W)
56- @test typeof (t) == TensorMap{Float64, spacetype (t), 5 , 0 , ROCVector{Float64, AMDGPU. DeviceMemory }}
56+ @test typeof (t) == TensorMap{Float64, spacetype (t), 5 , 0 , ROCVector{Float64, AMDGPU. Mem . HIPBuffer }}
5757 end
5858 for f in (rand, randn)
59- t = @constinferred f (ROCVector{Float64, AMDGPU. DeviceMemory }, W)
59+ t = @constinferred f (ROCVector{Float64, AMDGPU. Mem . HIPBuffer }, W)
6060 @test scalartype (t) == Float64
6161 @test codomain (t) == W
6262 @test space (t) == (W ← one (W))
6363 @test domain (t) == one (W)
64- @test typeof (t) == TensorMap{Float64, spacetype (t), 5 , 0 , ROCVector{Float64, AMDGPU. DeviceMemory }}
64+ @test typeof (t) == TensorMap{Float64, spacetype (t), 5 , 0 , ROCVector{Float64, AMDGPU. Mem . HIPBuffer }}
6565 end
6666 for f! in (rocrand!, rocrandn!)
6767 t = @constinferred AMDGPU. zeros (W)
@@ -70,7 +70,7 @@ for V in spacelist
7070 @test codomain (t) == W
7171 @test space (t) == (W ← one (W))
7272 @test domain (t) == one (W)
73- @test typeof (t) == TensorMap{Float64, spacetype (t), 5 , 0 , ROCVector{Float64, AMDGPU. DeviceMemory }}
73+ @test typeof (t) == TensorMap{Float64, spacetype (t), 5 , 0 , ROCVector{Float64, AMDGPU. Mem . HIPBuffer }}
7474 end
7575 for T in (Int, Float32, Float64, ComplexF32, ComplexF64)
7676 t = @constinferred AMDGPU. zeros (T, W)
@@ -82,7 +82,7 @@ for V in spacelist
8282 @test codomain (t) == W
8383 @test space (t) == (W ← one (W))
8484 @test domain (t) == one (W)
85- @test typeof (t) == TensorMap{T, spacetype (t), 5 , 0 , ROCVector{T, AMDGPU. DeviceMemory }}
85+ @test typeof (t) == TensorMap{T, spacetype (t), 5 , 0 , ROCVector{T, AMDGPU. Mem . HIPBuffer }}
8686 # blocks
8787 bs = @constinferred blocks (t)
8888 (c, b1), state = @constinferred Nothing iterate (bs)
@@ -163,13 +163,13 @@ for V in spacelist
163163 @test dot (t2, t) ≈ conj (dot (t2' , t' ))
164164 @test dot (t2, t) ≈ dot (t' , t2' )
165165
166- i1 = @constinferred (isomorphism (ROCVector{T, AMDGPU. DeviceMemory }, V1 ⊗ V2, V2 ⊗ V1))
167- i2 = @constinferred (isomorphism (ROCVector{T, AMDGPU. DeviceMemory }, V2 ⊗ V1, V1 ⊗ V2))
168- @test i1 * i2 == @constinferred (id (ROCVector{T, AMDGPU. DeviceMemory }, V1 ⊗ V2))
169- @test i2 * i1 == @constinferred (id (ROCVector{T, AMDGPU. DeviceMemory }, V2 ⊗ V1))
170- w = @constinferred (isometry (ROCVector{T, AMDGPU. DeviceMemory }, V1 ⊗ (oneunit (V1) ⊕ oneunit (V1)), V1))
166+ i1 = @constinferred (isomorphism (ROCVector{T, AMDGPU. Mem . HIPBuffer }, V1 ⊗ V2, V2 ⊗ V1))
167+ i2 = @constinferred (isomorphism (ROCVector{T, AMDGPU. Mem . HIPBuffer }, V2 ⊗ V1, V1 ⊗ V2))
168+ @test i1 * i2 == @constinferred (id (ROCVector{T, AMDGPU. Mem . HIPBuffer }, V1 ⊗ V2))
169+ @test i2 * i1 == @constinferred (id (ROCVector{T, AMDGPU. Mem . HIPBuffer }, V2 ⊗ V1))
170+ w = @constinferred (isometry (ROCVector{T, AMDGPU. Mem . HIPBuffer }, V1 ⊗ (oneunit (V1) ⊕ oneunit (V1)), V1))
171171 @test dim (w) == 2 * dim (V1 ← V1)
172- @test w' * w == id (ROCVector{T, AMDGPU. DeviceMemory }, V1)
172+ @test w' * w == id (ROCVector{T, AMDGPU. Mem . HIPBuffer }, V1)
173173 @test w * w' == (w * w' )^ 2
174174 end
175175 end
@@ -226,21 +226,21 @@ for V in spacelist
226226 tr = @constinferred real (t)
227227 @test scalartype (tr) <: Real
228228 @test real (TensorKit. to_cpu (t)) == TensorKit. to_cpu (tr)
229- @test storagetype (tr) == ROCVector{real (T), AMDGPU. DeviceMemory }
229+ @test storagetype (tr) == ROCVector{real (T), AMDGPU. Mem . HIPBuffer }
230230
231231 ti = @constinferred imag (t)
232232 @test scalartype (ti) <: Real
233233 @test imag (TensorKit. to_cpu (t)) == TensorKit. to_cpu (ti)
234- @test storagetype (ti) == ROCVector{real (T), AMDGPU. DeviceMemory }
234+ @test storagetype (ti) == ROCVector{real (T), AMDGPU. Mem . HIPBuffer }
235235
236236 tc = @inferred complex (t)
237237 @test scalartype (tc) <: Complex
238238 @test complex (TensorKit. to_cpu (t)) == TensorKit. to_cpu (tc)
239- @test storagetype (tc) == ROCVector{complex (T), AMDGPU. DeviceMemory }
239+ @test storagetype (tc) == ROCVector{complex (T), AMDGPU. Mem . HIPBuffer }
240240
241241 tc2 = @inferred complex (tr, ti)
242242 @test tc2 ≈ tc
243- @test storagetype (tc2) == ROCVector{complex (T), AMDGPU. DeviceMemory }
243+ @test storagetype (tc2) == ROCVector{complex (T), AMDGPU. Mem . HIPBuffer }
244244 end
245245 end
246246 end
0 commit comments