Skip to content

Bug for CuArray matrix multiplication #230

@XingyuZhang2018

Description

@XingyuZhang2018
using Test
using TensorOperations
using CUDA

@testset "A*B" for atype in [Array, CuArray]
    A = atype(randn(ComplexF64, 3, 4))
    B = atype(randn(ComplexF64, 4, 5))

    C1 = similar(A, ComplexF64, 3, 5)
    @tensor C1[a,c] = A[a,b] * B[b,c]
    C2 = A * B 
    @test C1  C2
end

for CuArray I got the error:
Got exception outside of a @test
ArgumentError: No suitable backend found for tensorcontract! and tensor types CuArray{ComplexF64, 2, CUDA.DeviceMemory}, CuArray{ComplexF64, 2, CUDA.DeviceMemory} and CuArray{ComplexF64, 2, CUDA.DeviceMemory}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions