Skip to content

mdav2/TBLIS.jl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

TBLIS.jl

Julia wrapper for TBLIS tensor contraction library.

[!] Work in progress Tested on Julia nightly builds and latest stable release (1.4.2)

Currently only tensor addition and multiplication are implemented - please file an issue if you need other functionality from TBLIS.

Install

julia>]
pkg>add https://github.com/mdav2/TBLIS.jl.git

Usage

using TBLIS
TBLIS.init()

O = 5
V = 20
TT = Float32

A = rand(TT,O,O,O,O)
B = rand(TT,O,O,V,V)
C = zeros(TT,O,O,V,V)
tijab = TBLIS.TTensor{TT}(A)
WmBeJ = TBLIS.TTensor{TT}(B)
T2 = TBLIS.TTensor{TT}(C)

TBLIS.mul!(T2,tijab,WmBeJ,"ijkl","klab","ijab")
TBLIS.add!(T2,WmBeJ,"ijkl","ijkl")

About

Julia wrapper for TBLIS tensor contraction library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Julia 100.0%