Skip to content

Commit a4837fc

Browse files
add JLArray to the README
1 parent 01458c6 commit a4837fc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,16 @@ working with immutable isbits (not containing pointers) type should be completel
7373
non allocating code (so no constructs like `x = [1, 2, 3]`). Note that tuples are isbits, so this works x = (1, 2, 3).
7474
Transpiler/OpenCL has problems with putting GPU arrays on the gpu into a struct - so no views and actually no multidimensional indexing. For that `size` is needed which would need to be part of the array struct. A fix for that is in sight, though.
7575

76+
# JLArray
77+
78+
The `JLArray` is a `GPUArray` which doesn't run on the GPU and rather uses Julia's multithreading as its backend. It serves as a
79+
fallback for testing compatibility with `GPUArray`s in cases where a GPU does not exist and also serves as a way to force
80+
multithreading for broadcasted/mapped/etc. operations. It is constructed as follows:
81+
82+
```julia
83+
gA = JLArray(A)
84+
```
85+
7686
# TODO / up for grabs
7787

7888
* stencil operations, convolutions

0 commit comments

Comments
 (0)