-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to CUDA 4.4.1, TensorOperations 4 and TensorCast 0.4. SEE README
- Loading branch information
Showing
15 changed files
with
96 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "SpinGlassTensors" | ||
uuid = "7584fc6a-5a23-4eeb-8277-827aab0146ea" | ||
authors = ["Anna Maria Dziubyna <[email protected]>", "Tomasz Śmierzchalski <[email protected]>", "Bartłomiej Gardas <[email protected]>", "Konrad Jałowiecki <[email protected]>", "Łukasz Pawela <[email protected]>", "Marek M. Rams <[email protected]>"] | ||
version = "1.0" | ||
version = "1.0.0" | ||
|
||
[deps] | ||
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" | ||
|
@@ -11,17 +11,24 @@ LowRankApprox = "898213cb-b102-5a47-900c-97e73b919f73" | |
MKL = "33e6dc65-8f57-5167-99aa-e5a354878fb2" | ||
Memoization = "6fafb56a-5788-4b4e-91ca-c0cea6611c73" | ||
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd" | ||
NNlibCUDA = "a00861dc-f156-4864-bf3c-e6376f28a68d" | ||
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" | ||
TSVD = "9449cd9e-2762-5aa3-a617-5413e99d722e" | ||
TensorCast = "02d47bb6-7ce6-556a-be16-bb1710789e2b" | ||
TensorOperations = "6aa20fa7-93e2-5fca-9bc0-fbd0db3c71a2" | ||
TransmuteDims = "24ddb15e-299a-5cc3-8414-dbddc482d9ca" | ||
cuTENSOR = "011b41b2-24ef-40a8-b3eb-fa098493e9e1" | ||
|
||
[compat] | ||
CUDA = "4.4.1" | ||
DocStringExtensions = "0.9.3" | ||
LowRankApprox = "0.5.5" | ||
MKL = "0.4.2" | ||
Memoization = "0.2.1" | ||
SparseArrays = "1.9" | ||
TensorCast = "0.4" | ||
TensorOperations = "3.0.1" | ||
julia = "1.8, 1.9" | ||
TensorOperations = "4" | ||
cuTENSOR = "1.1.0" | ||
julia = "1.9, 1.10" | ||
|
||
[extras] | ||
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[![Coverage Status](https://coveralls.io/repos/github/iitis/SpinGlassTensors.jl/badge.svg?branch=master)](https://coveralls.io/github/iitis/SpinGlassTensors.jl?branch=master) | ||
# SpinGlassTensors.jl | ||
This works with CUDA v4.4.1. You need to manually `]add TransmuteDims#strided2` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using TensorCast, TensorOperations | ||
function time_mm() | ||
M = rand(100, 100, 100) | ||
L = rand(100, 100) | ||
R = rand(100, 100) | ||
@time begin | ||
@matmul M1[x, σ, α] := sum(β) L[x, β] * M[β, σ, α] | ||
@matmul MM[x, σ, y] := sum(α) M1[x, σ, α] * R[α, y] | ||
end | ||
end | ||
|
||
function time_tensor() | ||
M = rand(100, 100, 100) | ||
L = rand(100, 100) | ||
R = rand(100, 100) | ||
|
||
@time begin | ||
@tensor M̃[x, σ, y] := L[x, β] * M[β, σ, α] * R[α, y] order = (α, β) | ||
# @cast B[(x, σ), y] |= M̃[x, σ, y] | ||
end | ||
end | ||
|
||
println("matmul") | ||
time_mm() | ||
time_mm() | ||
|
||
println("\n tensor") | ||
time_tensor() | ||
time_tensor() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters