We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 893a662 commit d14878aCopy full SHA for d14878a
src/validation.jl
@@ -16,7 +16,12 @@ function check_method(@nospecialize(job::CompilerJob))
16
cache = ci_cache(job)
17
mt = method_table(job)
18
interp = GPUInterpreter(cache, mt, job.source.world)
19
- rt = Base.return_types(job.source.f, job.source.tt, interp)[1]
+ @static if VERSION ≥ v"1.9.0-DEV.190"
20
+ # https://github.com/JuliaLang/julia/pull/44515
21
+ rt = Base.return_types(job.source.f, job.source.tt; interp)[1]
22
+ else
23
+ rt = Base.return_types(job.source.f, job.source.tt, interp)[1]
24
+ end
25
if rt != Nothing
26
throw(KernelError(job, "kernel returns a value of type `$rt`",
27
"""Make sure your kernel function ends in `return`, `return nothing` or `nothing`.
0 commit comments