Skip to content
Open
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
9 changes: 7 additions & 2 deletions src/jlgen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,9 @@ function ci_cache_populate(interp, cache, mi, min_world, max_world)

# inference should have populated our cache
wvc = WorldView(cache, min_world, max_world)
@assert CC.haskey(wvc, mi)
if !CC.haskey(wvc, mi)
throw(AssertionError("GPUCompiler: Failed to compile method for $mi, between worlds $min_world and $max_world"))
end
ci = CC.getindex(wvc, mi)

# if ci is rettype_const, the inference result won't have been cached
Expand All @@ -629,7 +631,10 @@ function ci_cache_populate(interp, cache, mi, min_world, max_world)

# inference should have populated our cache
wvc = WorldView(cache, min_world, max_world)
@assert CC.haskey(wvc, mi)

if !CC.haskey(wvc, mi)
throw(AssertionError("GPUCompiler: Failed to compile method for $mi, between worlds $min_world and $max_world"))
end
ci = CC.getindex(wvc, mi)

# if ci is rettype_const, the inference result won't have been cached
Expand Down
Loading