Skip to content

Commit 194cd8a

Browse files
committed
Merge github.com:JuliaGPU/GPUArrays.jl
2 parents 60c753e + e909b13 commit 194cd8a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ 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 async constructs as its backend. It serves as a fallback for testing compatibility with `GPUArray`s in cases where a GPU does not exist and as a reference implementation. It is constructed as follows:
79+
80+
```julia
81+
gA = JLArray(A)
82+
```
83+
7684
# TODO / up for grabs
7785

7886
* stencil operations, convolutions

src/GPUArrays.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ include("random.jl")
2121

2222
export GPUArray, gpu_call, thread_blocks_heuristic, global_size, synchronize_threads
2323
export linear_index, @linearidx, @cartesianidx, convolution!, device, synchronize
24+
export JLArray
2425

2526
end # module

0 commit comments

Comments
 (0)