Open
Description
openedon Jul 30, 2020
IIRC it used to be 200us or so, and @vtjnash mentioned Base compilation taking 1us 1ms or so for the simplest functions. This is pretty slow then:
julia> kernel() = return
kernel (generic function with 1 method)
julia> include("pkg/GPUCompiler/test/definitions/native.jl")
native_code_execution (generic function with 1 method)
julia> job, kwargs = native_job(kernel, Tuple{})
(CompilerJob of function kernel() for NativeCompilerTarget, Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}())
julia> @benchmark GPUCompiler.compile(:asm, job)
BenchmarkTools.Trial:
memory estimate: 389.70 KiB
allocs estimate: 7019
--------------
minimum time: 7.027 ms (0.00% GC)
median time: 7.784 ms (0.00% GC)
mean time: 7.805 ms (0.28% GC)
maximum time: 11.175 ms (24.24% GC)
--------------
samples: 640
evals/sample: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels