Skip to content

Commit 9278295

Browse files
Fix typo in Float64 unsupported error (#381)
1 parent 7c4881d commit 9278295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function check_eltype(T)
3232
Base.allocatedinline(T) || error("CLArray only supports element types that are stored inline")
3333
Base.isbitsunion(T) && error("CLArray does not yet support isbits-union arrays")
3434
!("cl_khr_fp16" in cl.device().extensions) && contains_eltype(T, Float16) && error("Float16 is not supported on this device")
35-
return !("cl_khr_fp64" in cl.device().extensions) && contains_eltype(T, Float64) && error("Float16 is not supported on this device")
35+
return !("cl_khr_fp64" in cl.device().extensions) && contains_eltype(T, Float64) && error("Float64 is not supported on this device")
3636
end
3737

3838
mutable struct CLArray{T, N, M} <: AbstractGPUArray{T, N}

0 commit comments

Comments
 (0)