Skip to content

Commit 05d1b49

Browse files
fix typo
1 parent ea9036a commit 05d1b49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mapreduce.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Base: any, count, countnz
33
#############################
44
# reduce
55
# functions in base implemented with a direct loop need to be overloaded to use mapreduce
6-
any(pred, A::GPUArray) = Bool(mapreduce(pred, |, Cint(0), (u)))
6+
any(pred, A::GPUArray) = Bool(mapreduce(pred, |, Cint(0), A))
77
count(pred, A::GPUArray) = Int(mapreduce(pred, +, UInt32(0), A))
88
countnz(A::GPUArray) = Int(mapreduce(x-> x != 0, +, UInt32(0), A))
99
countnz(A::GPUArray, dim) = Int(mapreducedim(x-> x != 0, +, UInt32(0), A, dim))

0 commit comments

Comments
 (0)