You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/interface.md
+41-5Lines changed: 41 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Interface
2
2
3
-
To extend the above functionality to a new array type, you should use the types and
3
+
To extend the GPUArrays functionality to a new array type, you should use the types and
4
4
implement the interfaces listed on this page. GPUArrays is designed around having two
5
5
different array types to represent a GPU array: one that exists only on the host, and
6
6
one that actually can be instantiated on the device (i.e. in kernels).
@@ -31,9 +31,45 @@ KernelAbstractions.get_backend(a::CA) where CA <: CustomArray = CustomBackend()
31
31
32
32
There are numerous examples of potential interfaces for GPUArrays, such as with [JLArrays](https://github.com/JuliaGPU/GPUArrays.jl/blob/master/lib/JLArrays/src/JLArrays.jl), [CuArrays](https://github.com/JuliaGPU/CUDA.jl/blob/master/src/gpuarrays.jl), and [ROCArrays](https://github.com/JuliaGPU/AMDGPU.jl/blob/master/src/gpuarrays.jl).
33
33
34
-
## Caching Allocator
34
+
## Device abstractions
35
35
36
-
```@docs
37
-
GPUArrays.@cached
38
-
GPUArrays.@uncached
36
+
!!! warning
37
+
Work in progress.
38
+
39
+
## Test suite
40
+
41
+
GPUArrays provides an extensive test suite that covers all of the functionality that should
42
+
be available after implementing the required interfaces. This test suite is part of this
43
+
package, but for dependency reasons it is not available when importing the package. Instead,
44
+
you should include the code from your `runtests.jl` as follows:
0 commit comments