File tree Expand file tree Collapse file tree 4 files changed +9
-27
lines changed Expand file tree Collapse file tree 4 files changed +9
-27
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ TBLIS = "48530278-0828-4a49-9772-0f3830dfa1e9"
4545cuTENSOR = " 011b41b2-24ef-40a8-b3eb-fa098493e9e1"
4646
4747[extensions ]
48- NDTensorsAMDGPUExt = [" AMDGPU" , " GPUArraysCore" ]
49- NDTensorsCUDAExt = [" CUDA" , " GPUArraysCore" ]
48+ NDTensorsAMDGPUExt = [" AMDGPU" , " GPUArraysCore" , " TypeParameterAccessors " ]
49+ NDTensorsCUDAExt = [" CUDA" , " GPUArraysCore" , " TypeParameterAccessors " ]
5050NDTensorsGPUArraysCoreExt = " GPUArraysCore"
5151NDTensorsHDF5Ext = " HDF5"
5252NDTensorsJLArraysExt = [" GPUArraysCore" , " JLArrays" ]
5353NDTensorsMappedArraysExt = [" MappedArrays" ]
54- NDTensorsMetalExt = [" GPUArraysCore" , " Metal" ]
54+ NDTensorsMetalExt = [" GPUArraysCore" , " Metal" , " TypeParameterAccessors " ]
5555NDTensorsOctavianExt = " Octavian"
5656NDTensorsTBLISExt = " TBLIS"
5757NDTensorscuTENSORExt = " cuTENSOR"
Original file line number Diff line number Diff line change 1- # TypeParameterAccessors definitions
2- using NDTensors. TypeParameterAccessors:
3- TypeParameterAccessors, Position, default_type_parameters
1+ using AMDGPU: ROCArray
42using NDTensors. GPUArraysCoreExtensions: storagemode
5- using AMDGPU: AMDGPU, ROCArray
6-
7- function TypeParameterAccessors. default_type_parameters (:: Type{<:ROCArray} )
8- return (default_type_parameters (AbstractArray)... , AMDGPU. Mem. HIPBuffer)
9- end
3+ using TypeParameterAccessors: TypeParameterAccessors, Position
104
115TypeParameterAccessors. position (:: Type{<:ROCArray} , :: typeof (storagemode)) = Position (3 )
Original file line number Diff line number Diff line change 1- # TypeParameterAccessors definitions
2- using CUDA: CUDA, CuArray
3- using NDTensors. TypeParameterAccessors:
4- TypeParameterAccessors, Position, default_type_parameters
1+ using CUDA: CuArray
52using NDTensors. GPUArraysCoreExtensions: storagemode
3+ using TypeParameterAccessors: TypeParameterAccessors, Position
64
75function TypeParameterAccessors. position (:: Type{<:CuArray} , :: typeof (storagemode))
86 return Position (3 )
97end
10-
11- function TypeParameterAccessors. default_type_parameters (:: Type{<:CuArray} )
12- return (default_type_parameters (AbstractArray)... , CUDA. Mem. DeviceBuffer)
13- end
Original file line number Diff line number Diff line change 1- using Metal: Metal, MtlArray
2- # `TypeParameterAccessors.jl` definitions.
3-
4- using NDTensors. TypeParameterAccessors: TypeParameterAccessors, Position
1+ using Metal: MtlArray
52using NDTensors. GPUArraysCoreExtensions: storagemode
3+ using TypeParameterAccessors: TypeParameterAccessors, Position
64
75function TypeParameterAccessors. position (:: Type{<:MtlArray} , :: typeof (storagemode))
86 return Position (3 )
97end
10-
11- function TypeParameterAccessors. default_type_parameters (:: Type{<:MtlArray} )
12- return (Float32, 1 , Metal. DefaultStorageMode)
13- end
You can’t perform that action at this time.
0 commit comments