-
Notifications
You must be signed in to change notification settings - Fork 128
[NDTensors] JLArrays Extension #1508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
fc3ca6c
0c9aae6
506a071
c4dad63
f23d305
822411c
e213bff
7068a63
b8b46a3
fd0866e
2caf2d1
9ad5670
0f1f277
95881d5
0acdaec
a4687bd
cdee270
d0b6a2f
d6e675d
bdacf0e
d2be3b3
9428514
b3a2d87
9165664
1cd131d
6654671
8a32daf
ad02066
8534859
e2aa194
1078405
f47cf11
094c3e3
b751d64
1a14a33
0aee394
4e5c622
1b976d0
6027cb6
12f43cb
638377c
4208487
14922b1
38092d8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| name = "NDTensors" | ||
| uuid = "23ae76d9-e61a-49c4-8f12-3f1a16adf9cf" | ||
| authors = ["Matthew Fishman <[email protected]>"] | ||
| version = "0.3.34" | ||
| version = "0.3.35" | ||
|
|
||
| [deps] | ||
| Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697" | ||
|
|
@@ -36,6 +36,7 @@ AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e" | |
| CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" | ||
| GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527" | ||
| HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f" | ||
| JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb" | ||
| MappedArrays = "dbb5928d-eab1-5f90-85c2-b9b0edb7c900" | ||
| Metal = "dde4c033-4e86-420c-a63e-0dd931031962" | ||
| Octavian = "6fd5a793-0b7e-452c-907f-f8bfe9c57db4" | ||
|
|
@@ -47,6 +48,7 @@ NDTensorsAMDGPUExt = ["AMDGPU", "GPUArraysCore"] | |
| NDTensorsCUDAExt = ["CUDA", "GPUArraysCore"] | ||
| NDTensorsGPUArraysCoreExt = "GPUArraysCore" | ||
| NDTensorsHDF5Ext = "HDF5" | ||
| NDTensorsJLArraysExt = ["JLArrays", "GPUArraysCore"] | ||
| NDTensorsMappedArraysExt = ["MappedArrays"] | ||
| NDTensorsMetalExt = ["GPUArraysCore", "Metal"] | ||
| NDTensorsOctavianExt = "Octavian" | ||
|
|
@@ -70,6 +72,7 @@ GPUArraysCore = "0.1" | |
| HDF5 = "0.14, 0.15, 0.16, 0.17" | ||
| HalfIntegers = "1" | ||
| InlineStrings = "1" | ||
| JLArrays = "0.1" | ||
| LinearAlgebra = "1.6" | ||
mtfishman marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| MacroTools = "0.5" | ||
| MappedArrays = "0.4" | ||
|
|
@@ -95,6 +98,7 @@ AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e" | |
| CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" | ||
| GPUArraysCore = "46192b85-c4d5-4398-a991-12ede77f4527" | ||
| HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f" | ||
| JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb" | ||
| Metal = "dde4c033-4e86-420c-a63e-0dd931031962" | ||
| Octavian = "6fd5a793-0b7e-452c-907f-f8bfe9c57db4" | ||
| TBLIS = "48530278-0828-4a49-9772-0f3830dfa1e9" | ||
|
|
||
kmp5VT marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| module NDTensorsJLArraysExt | ||
| include("set_types.jl") | ||
| end |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # TypeParameterAccessors definitions | ||
| using NDTensors.TypeParameterAccessors: TypeParameterAccessors, Position | ||
| using NDTensors.GPUArraysCoreExtensions: storagemode | ||
| using JLArrays: JLArrays, JLArray | ||
|
|
||
| function TypeParameterAccessors.default_type_parameters(::Type{<:JLArray}) | ||
| return (Float64, 1) | ||
| end | ||
kmp5VT marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| TypeParameterAccessors.position(::Type{<:JLArray}, ::typeof(eltype)) = Position(1) | ||
| TypeParameterAccessors.position(::Type{<:JLArray}, ::typeof(ndims)) = Position(2) | ||
kmp5VT marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,10 @@ if "cutensor" in ARGS || "all" in ARGS | |
| Pkg.add("cuTENSOR") | ||
| using CUDA, cuTENSOR | ||
kmp5VT marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| end | ||
| if "jlarrays" in ARGS || "all" in ARGS | ||
| Pkg.add("JLArrays") | ||
| using JLArrays | ||
| end | ||
|
||
|
|
||
| function devices_list(test_args) | ||
| devs = Vector{Function}(undef, 0) | ||
|
|
@@ -47,5 +51,10 @@ function devices_list(test_args) | |
| if "metal" in test_args || "all" in test_args | ||
| push!(devs, NDTensors.MetalExtensions.mtl) | ||
| end | ||
|
|
||
| if "jlarrays" in test_args || "all" in test_args | ||
| push!(devs, JLArrays.jl) | ||
| end | ||
|
|
||
| return devs | ||
| end | ||
Uh oh!
There was an error while loading. Please reload this page.