Skip to content
This repository was archived by the owner on Sep 27, 2021. It is now read-only.

Commit 272c621

Browse files
authored
Update README.md
1 parent 23fd714 commit 272c621

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
11
# CLArrays
2+
3+
Implementation of the [abstract GPU Array Interface](https://github.com/JuliaGPU/GPUArrays.jl)
4+
5+
CLArray uses [Transpiler.jl](https://github.com/SimonDanisch/Transpiler.jl) to compile Julia functions for the GPU using OpenCL.
6+
7+
It implements the full abstract gpu interface in GPUArrays.
8+
To learn how to use it, please refer to the GPUArray documentations:
9+
10+
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://JuliaGPU.github.io/GPUArrays.jl/latest)
11+
12+
The only noteworthy interface that isn't mentioned in GPUArrays is how to select and initialize devices:
13+
14+
```Julia
15+
using CLArrays
16+
17+
for dev in CLArrays.devices()
18+
CLArrays.init(dev)
19+
x = zeros(CLArray{Float32}, 5, 5) # create a CLArray on device `dev`
20+
end
21+
# you can also filter with is_gpu, is_cpu
22+
gpu_devices = CLArrays.devices(is_gpu)
23+
```

0 commit comments

Comments
 (0)