Skip to content

Commit 31946bd

Browse files
committed
removing cuda dependency from atomics test and fixing histogram example
1 parent 527fd0e commit 31946bd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

examples/histogram.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
using KernelAbstractions, Test
22
include(joinpath(@__DIR__, "utils.jl")) # Load backend
33

4+
if Base.VERSION < v"1.7.0"
5+
return
6+
end
7+
48
# Function to use as a baseline for CPU metrics
59
function create_histogram(input)
610
histogram_output = zeros(Int, maximum(input))

test/atomic_test.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using KernelAbstractions, CUDA, Test
1+
using KernelAbstractions, Test
22

33
# Note: kernels affect second element because some CPU defaults will affect the
44
# first element of a pointer if not specified, so I am covering the bases

0 commit comments

Comments
 (0)