This repository has been archived by the owner on Dec 7, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds support for using TBLIS as a backend for (real) tensor contractions. Here is the interface:
This outputs something like the following on my laptop:
so it is about 25% faster and uses a lot less memory.
In order to use it, you first have to install TBLIS.jl (and right now, to get commands like
TBLIS.set_num_threads(4)
, you need to use my fork: https://github.com/mtfishman/TBLIS.jl).Note that it is only limited to real contractions right now, since the TBLIS support for complex tensors is currently limited (devinamatthews/tblis#18). I've also found that it doesn't help with the DMRG calculations I have tried (specifically, it doesn't give a speedup, and sometimes is even a bit slower). My guess is that many DMRG contractions can map directly to BLAS calls without permutations, and in those cases TBLIS is slower than MKL. It may also have to do with the tensor dimensions involved.