Skip to content

Commit b441e37

Browse files
new version 0.6.0
1 parent c5e99be commit b441e37

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PlatformAware"
22
uuid = "e7c50b67-2c03-471e-9cf2-69e515d86ecf"
33
authors = ["Francisco Heron de Carvalho Junior <heron@dc.ufc.br> and contributors"]
4-
version = "0.5.1"
4+
version = "0.6.0"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"

src/features/quantifiers/macros.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ macro just(m,x)
5959
Meta.parse("Tuple{$M,$N,$(x)}")
6060
end
6161

62+
6263
macro unrestricted()
6364
@atleast 0
6465
end

test/basics.jl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,25 @@
2525
println(z,": default implementation of kernel_example:")
2626
end
2727

28+
2829
# specify platform-aware implementations
29-
@platform aware function kernel({accelerator_count::(@atleast 1)},
30-
x,y,args...; z=1, kwargs...)
30+
@platform aware function kernel({accelerator_count::(@atleast 1)}, y, args...; z=1, kwargs...)
3131
println(z,": kernel for 1 accelerators of unspecified kind")
3232
end
3333

3434
@platform aware function kernel({accelerator_count::Tuple{AtLeast1,AtMostInf,C} #=(@atleast(1,C))=#,
3535
accelerator_manufacturer::NVIDIA,
36-
accelerator_api::(@api CUDA 3.0)},
37-
x::@atleast(1),y,args...; z=2, kwargs...) where C
36+
accelerator_api::(@api CUDA 6.0)},y,args...; z=2, kwargs...) where C
3837
println(z,": kernel 1 for $C NVIDIA accelerators")
3938
end
4039

4140
@platform aware function kernel({accelerator_count::Tuple{AtLeast1,AtMostInf,C}#=(@atleast(1,C))=#,
4241
accelerator_manufacturer::NVIDIA,
43-
accelerator_api::(@api CUDA 3.0)},
44-
x::@atleast(16),y,args...; z=2, kwargs...) where C
42+
accelerator_api::(@api CUDA 5.0)},y,args...; z=2, kwargs...) where C
4543
println(z,": kernel 2 for $C NVIDIA accelerators")
4644
end
4745

46+
4847
@platform assumption some_cluster = {node_count::(@atleast 32), processor::IntelCore_i7_7500U}
4948

5049
@platform aware function kernel($some_cluster, x,y,args...; z=3, kwargs...)

0 commit comments

Comments
 (0)