Skip to content

Commit 146fda8

Browse files
committed
New logo! (+itask_partition)
1 parent 195517e commit 146fda8

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![AcceleratedKernels.jl](https://github.com/juliagpu/AcceleratedKernels.jl/blob/main/docs/src/assets/banner.png?raw=true)](https://juliagpu.github.io/AcceleratedKernels.jl)
1+
[![AcceleratedKernels.jl](https://github.com/juliagpu/AcceleratedKernels.jl/blob/main/docs/src/assets/logo.png?raw=true)](https://juliagpu.github.io/AcceleratedKernels.jl)
22

33
*"We need more speed" - Lightning McQueen or Scarface, I don't know*
44

docs/src/api/task_partition.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
```@docs
44
AcceleratedKernels.TaskPartitioner
55
AcceleratedKernels.task_partition
6+
AcceleratedKernels.itask_partition
67
```

docs/src/assets/banner.png

-105 KB
Binary file not shown.

docs/src/assets/logo.png

535 KB
Loading

src/task_partitioner.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,15 @@ task, calling `f(itask, start_index:end_index)`, where the indices are between 1
193193
A toy example showing outputs:
194194
```julia
195195
num_elems = 4
196-
itask_partition(println, num_elems)
196+
itask_partition(num_elems) do itask, irange
197+
@show (itask, irange)
198+
end
197199
198200
# Output, possibly in a different order due to threading order
199-
TODO
201+
(itask, irange) = (3, 3:3)
202+
(itask, irange) = (1, 1:1)
203+
(itask, irange) = (2, 2:2)
204+
(itask, irange) = (4, 4:4)
200205
```
201206
202207
This function is probably most useful with a do-block, e.g.:

0 commit comments

Comments
 (0)