Skip to content

Commit da83511

Browse files
Disable nightly CI and fix invalid Metal API usage (#448)
1 parent f148e71 commit da83511

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.buildkite/pipeline.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ steps:
3131
julia:
3232
- "1.10"
3333
- "1.11"
34-
- "nightly"
35-
adjustments:
36-
- with:
37-
julia: "nightly"
38-
soft_fail: true
34+
# - "nightly"
35+
# adjustments:
36+
# - with:
37+
# julia: "nightly"
38+
# soft_fail: true
3939

4040
# special tests
4141
- group: ":eyes: Special"

src/array.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,10 @@ fill(v::T, dims...; storage=DefaultStorageMode) where T = fill!(MtlArray{T,lengt
514514

515515
# optimized implementation of `fill!` for types that are directly supported by fillbuffer
516516
function Base.fill!(A::MtlArray{T}, val) where T <: Union{UInt8,Int8}
517-
B = convert(T, val)
518-
unsafe_fill!(device(A), pointer(A), B, length(A))
517+
if length(A) > 0
518+
B = convert(T, val)
519+
unsafe_fill!(device(A), pointer(A), B, length(A))
520+
end
519521
A
520522
end
521523

0 commit comments

Comments
 (0)