Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/mtl/capture.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function MTLCaptureDescriptor()
end

# TODO: Add capture state
function MTLCaptureDescriptor(obj::Union{MTLDevice,MTLCommandQueue, MTLCaptureScope},
function MTLCaptureDescriptor(obj::Union{MTLDevice,MTLCommandQueue,MTLCaptureScope},
destination::MTLCaptureDestination;
folder::String=nothing)
desc = MTLCaptureDescriptor()
Expand Down Expand Up @@ -110,7 +110,7 @@ end

Start GPU frame capture using the default capture object and specifying capture descriptor parameters directly.
"""
function startCapture(obj::Union{MTLDevice,MTLCommandQueue, MTLCaptureScope},
function startCapture(obj::Union{MTLDevice,MTLCommandQueue,MTLCaptureScope},
destination::MTLCaptureDestination=MTLCaptureDestinationGPUTraceDocument;
folder::String=nothing)
if destination == MTLCaptureDestinationGPUTraceDocument && folder === nothing
Expand Down
22 changes: 17 additions & 5 deletions perf/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,23 @@ let group = addgroup!(group, "random")
end
end

# let group = addgroup!(group, "sorting")
# group["1d"] = @benchmarkable Metal.@sync sort($gpu_vec)
# group["2d"] = @benchmarkable Metal.@sync sort($gpu_mat; dims=1)
# group["by"] = @benchmarkable Metal.@sync sort($gpu_vec; by=sin)
# end
let group = addgroup!(group, "sorting")
let group = addgroup!(group, "Float32")
group["1d"] = @benchmarkable Metal.@sync sort($gpu_vec)
group["by=sin"] = @benchmarkable Metal.@sync sort($gpu_vec; by=sin)
# group["dims=1"] = @benchmarkable Metal.@sync sort($gpu_mat; dims=1)
# group["dims=2"] = @benchmarkable Metal.@sync sort($gpu_mat; dims=2)
# group["dims=1L"] = @benchmarkable Metal.@sync sort($gpu_mat_long; dims=1)
# group["dims=2L"] = @benchmarkable Metal.@sync sort($gpu_mat_long; dims=2)
end
let group = addgroup!(group, "Int64")
group["1d"] = @benchmarkable Metal.@sync sort($gpu_vec_ints)
# group["dims=1"] = @benchmarkable Metal.@sync sort($gpu_mat_ints; dims=1)
# group["dims=2"] = @benchmarkable Metal.@sync sort($gpu_mat_ints; dims=2)
# group["dims=1L"] = @benchmarkable Metal.@sync sort($gpu_mat_long_ints; dims=1)
# group["dims=2L"] = @benchmarkable Metal.@sync sort($gpu_mat_long_ints; dims=2)
end
end

let group = addgroup!(group, "permutedims")
group["2d"] = @benchmarkable Metal.@sync permutedims($gpu_mat, (2,1))
Expand Down
Loading
Loading